projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96463bb
)
vorbisdec: make upstream queries and events MT-safe
author
Havard Graff
<havard.graff@tandberg.com>
Mon, 21 Mar 2011 15:03:16 +0000
(16:03 +0100)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Fri, 8 Apr 2011 13:00:35 +0000
(15:00 +0200)
ext/vorbis/gstvorbisdec.c
patch
|
blob
|
history
diff --git
a/ext/vorbis/gstvorbisdec.c
b/ext/vorbis/gstvorbisdec.c
index
33f4184
..
3d83995
100644
(file)
--- a/
ext/vorbis/gstvorbisdec.c
+++ b/
ext/vorbis/gstvorbisdec.c
@@
-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: