[ekiga] Fixed crash when accepting a call
- From: Eugen Dedu <ededu src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga] Fixed crash when accepting a call
- Date: Thu, 4 Jun 2009 04:30:02 -0400 (EDT)
commit 43c6c483c2748d479181287e7333fef95f006bf1
Author: Robert Jongbloed <robertj voxlucida com au>
Date: Thu Jun 4 10:27:23 2009 +0200
Fixed crash when accepting a call
Closes bug 578534.
---
lib/engine/components/opal/opal-call.cpp | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/lib/engine/components/opal/opal-call.cpp b/lib/engine/components/opal/opal-call.cpp
index 3d328b1..9643eff 100644
--- a/lib/engine/components/opal/opal-call.cpp
+++ b/lib/engine/components/opal/opal-call.cpp
@@ -130,20 +130,10 @@ Opal::Call::hangup ()
void
Opal::Call::answer ()
{
- PSafePtr<OpalConnection> connection = NULL;
- int i = 0;
-
if (!is_outgoing () && !IsEstablished ()) {
-
- do {
-
- connection = GetConnection (i);
- i++;
- } while (!PIsDescendant(&(*connection), OpalPCSSConnection));
-
- if (PIsDescendant(&(*connection), OpalPCSSConnection)) {
- PDownCast (OpalPCSSConnection, &(*connection))->AcceptIncoming ();
- }
+ PSafePtr<OpalPCSSConnection> connection = GetConnectionAs<OpalPCSSConnection>();
+ if (connection != NULL)
+ connection->AcceptIncoming();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]