GNOME Bugzilla – Bug 531538
Race between gst_bus_set_flushing and async bus watches
Last modified: 2008-05-05 16:47:25 UTC
If a bus is set to flushing between the time that the default mainloop calls _prepare or _check and _dispatch, then the dispatch will fail to pop a buffer. Which causes it to hit a _return_if_fail, which removed the bus watch...
Created attachment 110403 [details] [review] Ignore when popping a NULL message
*** Bug 528531 has been marked as a duplicate of this bug. ***
Committed, thanks: 2008-05-05 Tim-Philipp Müller <tim.muller at collabora co uk> Patch by: Sjoerd Simons <sjoerd at luon net> * gst/gstbus.c: (gst_bus_source_dispatch): Don't print a warning if the queue is empty when we try to pop here. That could happen if another thread or callback set the bus to flushing between the source's check/prepare and the dispatch being called (#531538).