projects
/
platform
/
upstream
/
gst-plugins-good.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jpegdec: Make upstream events MT-safe
[platform/upstream/gst-plugins-good.git]
/
ext
/
jpeg
/
gstjpegdec.c
diff --git
a/ext/jpeg/gstjpegdec.c
b/ext/jpeg/gstjpegdec.c
index
71ae4b9
..
d3a1e54
100644
(file)
--- a/
ext/jpeg/gstjpegdec.c
+++ b/
ext/jpeg/gstjpegdec.c
@@
-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:{