GNOME Bugzilla – Bug 353122
gst_element_get_bus refs the bus unconditionally
Last modified: 2006-08-28 08:41:23 UTC
Apparently, gst_element_get_bus can return NULL but refs the bus unconditionally, which leads to an assertion. Patch attached.
Created attachment 71711 [details] [review] Check for NULL before ref-ing
Patch by: Torsten Schoenfeld <kaffeetisch at gmx dot de> * gst/gstelement.c: (gst_element_get_bus): * tests/check/gst/gstelement.c: (GST_START_TEST): Check for NULL before _reffing the bus. Fixes #353122.