Commit 5e9cfc63 authored by Havard Graff's avatar Havard Graff Committed by Sebastian Dröge

vorbisdec: make upstream queries and events MT-safe

parent 96463bb8
......@@ -294,6 +294,8 @@ vorbis_dec_src_query (GstPad * pad, GstQuery * query)
gboolean res = FALSE;
dec = GST_VORBIS_DEC (gst_pad_get_parent (pad));
if (G_UNLIKELY (dec == NULL))
return FALSE;
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_POSITION:
......@@ -408,6 +410,8 @@ vorbis_dec_src_event (GstPad * pad, GstEvent * event)
GstVorbisDec *dec;
dec = GST_VORBIS_DEC (gst_pad_get_parent (pad));
if (G_UNLIKELY (dec == NULL))
return FALSE;
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment