gdb extrmely slow calling gst_init()

Spruyt, Randy Randy.Spruyt at
Fri Dec 12 07:48:46 PST 2014

Hi All, new to this forum and gstreamer. I seem to have an issue

Using Gstreamer 1.4.4, Windows7 64, Eclipse (Luna), mingw-64, when calling gst_init(), this function is brutally slow in gdb taking 44 seconds to return . When running (debug version) outside of gdb, it takes over a second. Just wondering if anyone else has seen this. Adding optimization and removing debug symbols does not seem to help. Anyone seen this?

#include <gst/gst.h>
#include <glib.h>

int main( int argc, char *argv[] )
       /* Initialization */
       g_print( "Initializing GST\n" );
       struct timeval tv1;
       struct timeval tv2;
       gettimeofday( &tv1,NULL );
       gst_init( &argc, &argv );
       gettimeofday( &tv2,NULL );
       g_print( "Done Init in %d sec\n", tv2.tv_sec - tv1.tv_sec );


Initializing GST
Done Init in 44 sec

mingw32-make.exe all
'Building file: ../main.cpp'
'Invoking: GCC C++ Compiler'
g++ -IC:/Galaxy/VideoStreamingEngine/ThirdPartyLibraries/gstreamer/include/gstreamer-1.0 -IC:/Galaxy/VideoStreamingEngine/ThirdPartyLibraries/gstreamer/include/glib-2.0 -IC:/Galaxy/VideoStreamingEngine/ThirdPartyLibraries/gstreamer/lib/glib-2.0/include -O0 -g3 -Wall -c -fmessage-length=0 -mms-bitfields -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
'Finished building: ../main.cpp'
' '
'Building target: VideoStreamingEngine'
'Invoking: MinGW C++ Linker'
g++ -LC:/Galaxy/VideoStreamingEngine/ThirdPartyLibraries/gstreamer/lib -o "VideoStreamingEngine"  ./main.o   -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
'Finished building target: VideoStreamingEngine'

Randy Spruyt, P.Eng
Software Developer, Application Software
809 Wellington Street North
Kitchener, Ontario N2G 4Y7
PH: +1 519-744-8005 ext. 7193

This email message (including attachments, if any) is confidential. Any unauthorized use, distribution or disclosure is prohibited. If you receive this e-mail message in error, please notify the sender by reply e-mail or telephone and delete it and any attachments from your computer system and records

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list