[gstreamer-bugs] [Bug 615655] [camerabin] shouldn't rely on running GLib main loop

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Apr 15 03:33:15 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=615655
  GStreamer | gst-plugins-bad | git

Stefan Kost (gstreamer, gtkdoc dev) <ensonic> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ensonic at sonicpulse.de

--- Comment #1 from Stefan Kost (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> 2010-04-15 10:33:10 UTC ---
Right now the best way to solve this would be to detach imgbin from the rest
using appsrc/appsink. Then we can even have a pool of imagebins and we can
control the states without g_idle_add.

For the record, if we just remove the g_idle_add as it is now and make a direct
call, we get stuck in.

gstbasesink.c:4741       GST_PAD_PREROLL_LOCK (basesink->sinkpad);

Thread 3 (Thread 0x7f34d925b910 (LWP 3144)):
#0  0x00007f34dfd92c34 in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x00007f34dfd8e295 in _L_lock_949 () from /lib/libpthread.so.0
#2  0x00007f34dfd8e0b8 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x00007f34dbe5e425 in gst_base_sink_change_state (element=0x13a3410,
transition=GST_STATE_CHANGE_PLAYING_TO_PAUSED) at gstbasesink.c:4741
#4  0x00007f34e2e2ee9c in gst_element_change_state (element=0x13a3d80,
transition=128) at gstelement.c:2531
#5  0x00007f34e2e32408 in gst_element_set_state_func (element=0x13a3410,
state=<value optimized out>) at gstelement.c:2487
#6  0x00007f34e2e1e3a7 in gst_bin_element_set_state (element=0x12f0050,
transition=<value optimized out>) at gstbin.c:2121
#7  gst_bin_change_state_func (element=0x12f0050, transition=<value optimized 
out>) at gstbin.c:2420
#8  0x00007f34dc095dbf in gst_camerabin_image_change_state (element=0x12f0050,
transition=GST_STATE_CHANGE_PLAYING_TO_PAUSED) at camerabinimage.c:225
#9  0x00007f34e2e2ee9c in gst_element_change_state (element=0x13a3d80,
transition=128) at gstelement.c:2531
#10 0x00007f34e2e32408 in gst_element_set_state_func (element=0x12f0050,
state=<value optimized out>) at gstelement.c:2487
#11 0x00007f34dc08d7bd in gst_camerabin_imgbin_finished (bin=0x12ee030,
msg=0x7f34d4000dc0) at gstcamerabin.c:3472

Maybe there is a easier fix then then appsrc/appsink change.

-- 
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