mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
decodebin: Do not block on sticky and oob events
This commit is contained in:
parent
532659de4d
commit
b6765417e1
1 changed files with 8 additions and 0 deletions
|
@ -3752,6 +3752,14 @@ source_pad_blocked_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
|
||||||
GstDecodeChain *chain;
|
GstDecodeChain *chain;
|
||||||
GstDecodeBin *dbin;
|
GstDecodeBin *dbin;
|
||||||
|
|
||||||
|
if ((GST_PAD_PROBE_INFO_TYPE (info) & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) &&
|
||||||
|
(GST_EVENT_IS_STICKY (GST_PAD_PROBE_INFO_EVENT (info))
|
||||||
|
|| !GST_EVENT_IS_SERIALIZED (GST_PAD_PROBE_INFO_EVENT (info)))) {
|
||||||
|
/* do not block on sticky or out of band events otherwise the allocation query
|
||||||
|
from demuxer might block the loop thread */
|
||||||
|
return GST_PAD_PROBE_PASS;
|
||||||
|
}
|
||||||
|
|
||||||
chain = dpad->chain;
|
chain = dpad->chain;
|
||||||
dbin = chain->dbin;
|
dbin = chain->dbin;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue