ekiga r7858 - trunk/lib/engine/components/opal
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7858 - trunk/lib/engine/components/opal
- Date: Wed, 15 Apr 2009 13:51:11 +0000 (UTC)
Author: jpuydt
Date: Wed Apr 15 13:51:10 2009
New Revision: 7858
URL: http://svn.gnome.org/viewvc/ekiga?rev=7858&view=rev
Log:
Fixed stupid bug where I convert an enum to a pointer starting from zero, while pushing to a function which doesn't like null pointers
Modified:
trunk/lib/engine/components/opal/opal-call-manager.cpp
Modified: trunk/lib/engine/components/opal/opal-call-manager.cpp
==============================================================================
--- trunk/lib/engine/components/opal/opal-call-manager.cpp (original)
+++ trunk/lib/engine/components/opal/opal-call-manager.cpp Wed Apr 15 13:51:10 2009
@@ -83,7 +83,7 @@
{
PSTUNClient::NatTypes result = manager.SetSTUNServer (server);
- g_async_queue_push (queue, GUINT_TO_POINTER (result));
+ g_async_queue_push (queue, GUINT_TO_POINTER ((guint)result + 1));
};
private:
@@ -706,7 +706,7 @@
if (g_async_queue_length (queue) > 0) {
PSTUNClient::NatTypes result
- = (PSTUNClient::NatTypes)GPOINTER_TO_UINT (g_async_queue_pop (queue));
+ = (PSTUNClient::NatTypes)(GPOINTER_TO_UINT (g_async_queue_pop (queue))-1);
got_answer = true;
if (result == PSTUNClient::SymmetricNat
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]