[gstreamer-bugs] [Bug 622588] thread problem in rtspsrc

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Oct 4 07:06:06 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=622588
  GStreamer | gst-plugins-good | 0.10.23

--- Comment #7 from Tibor Kocsis <ikt011 at gmail.com> 2010-10-04 14:06:01 UTC ---
I found something that maybe cause this problem. In my application I watch a
lot of h264 encoded stream and sometimes it crashed at plugin loading:

0:00:28.024064013  [331m10992 [00m  0x8e37d20  [37mLOG     [00m
 [00;01;36m  GST_PLUGIN_LOADING
gstplugin.c:782:gst_plugin_load_file: [00m Plugin 0x92640800 for file
"/usr/lib/gstreamer-0.10/libgstrtsp.so" prepared, registering...
0:00:28.024091155  [331m10992 [00m  0x8e37d20  [37mLOG     [00m
 [00;01;36m  GST_PLUGIN_LOADING
gstplugin.c:538:gst_plugin_register_func: [00m plugin
"/usr/lib/gstreamer-0.10/libgstrtsp.so" looks good

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/gstreamer-0.10/libgstrtsp.so

I have a similar crashlog with libgstffmpeg.so, too. After that I had the idea
to load the elements I'm using at the start of my app. I did this with creating
every elements and throwing them away. The goal was to preload the .so files.
With this workaround the crashes are gone and all the rtsp streams are showed
up. 

So I think maybe the loading of the plugins is not thread safe: while a thread
initializing a plugin, an another thread can use this partially loaded plugin,
and the result is crash or some weird behavior. Can this be correct?

Regards
Tibor

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list