[ekiga] Trace also codec initialisation



commit f89d2f52bbab53123b28ccabf8dcb9301874239b
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Wed Mar 30 16:49:18 2011 +0200

    Trace also codec initialisation
    
    This commit works only after commit 25454 of ptlib.

 src/gui/main_window.cpp |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index d3adeed..db0ad93 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -4816,9 +4816,6 @@ main (int argc,
   }
 #endif
 
-  /* Ekiga initialisation */
-  static GnomeMeeting instance;
-
 #if PTRACING
   if (debug_level != 0)
     PTrace::Initialise (PMAX (PMIN (5, debug_level), 0), NULL,
@@ -4826,10 +4823,15 @@ main (int argc,
 			| PTrace::Blocks | PTrace::DateAndTime);
 #endif
 
+  PTRACE(1, "Ekiga version " << MAJOR_VERSION << "." << MINOR_VERSION << "." << BUILD_NUMBER);
 #ifdef EKIGA_REVISION
   PTRACE(1, "Ekiga git revision: " << EKIGA_REVISION);
 #endif
 
+  /* Ekiga initialisation */
+  // should come *after* ptrace initialisation, to track codec loading for ex.
+  static GnomeMeeting instance;
+
 #ifdef HAVE_DBUS
   if (!ekiga_dbus_claim_ownership ()) {
     ekiga_dbus_client_show ();
@@ -4914,7 +4916,7 @@ typedef struct {
 } _startupinfo;
 
 extern "C" void __getmainargs (int *argcp, char ***argvp, char ***envp, int glob, _startupinfo *sinfo);
-int 
+int
 APIENTRY WinMain (HINSTANCE hInstance,
 		  HINSTANCE hPrevInstance,
 		  LPSTR     lpCmdLine,
@@ -4941,4 +4943,3 @@ APIENTRY WinMain (HINSTANCE hInstance,
   return iresult;
 }
 #endif
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]