mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
jpegdec: Make upstream events MT-safe
This commit is contained in:
parent
342686bb02
commit
9386448649
1 changed files with 2 additions and 0 deletions
|
@ -1651,6 +1651,8 @@ gst_jpeg_dec_src_event (GstPad * pad, GstEvent * event)
|
||||||
gboolean res;
|
gboolean res;
|
||||||
|
|
||||||
dec = GST_JPEG_DEC (gst_pad_get_parent (pad));
|
dec = GST_JPEG_DEC (gst_pad_get_parent (pad));
|
||||||
|
if (G_UNLIKELY (dec == NULL))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_QOS:{
|
case GST_EVENT_QOS:{
|
||||||
|
|
Loading…
Reference in a new issue