ekiga r7858 - trunk/lib/engine/components/opal



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]