Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
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
Options
Browse Files
Download
Email Patches
Plain Diff
vorbisdec: make upstream queries and events MT-safe
parent
96463bb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ext/vorbis/gstvorbisdec.c
ext/vorbis/gstvorbisdec.c
+4
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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