mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vorbisdec: make upstream queries and events MT-safe
This commit is contained in:
parent
96463bb8df
commit
5e9cfc6355
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue