jpegdec: Make upstream events MT-safe

This commit is contained in:
Havard Graff 2011-03-21 16:04:34 +01:00 committed by Sebastian Dröge
parent 342686bb02
commit 9386448649

View file

@ -1651,6 +1651,8 @@ gst_jpeg_dec_src_event (GstPad * pad, GstEvent * event)
gboolean res;
dec = GST_JPEG_DEC (gst_pad_get_parent (pad));
if (G_UNLIKELY (dec == NULL))
return FALSE;
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_QOS:{