Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
5e9cfc63
Commit
5e9cfc63
authored
Mar 21, 2011
by
Havard Graff
Committed by
Sebastian Dröge
Apr 08, 2011
Browse files
vorbisdec: make upstream queries and events MT-safe
parent
96463bb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ext/vorbis/gstvorbisdec.c
View file @
5e9cfc63
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment