decodebin: consider all deadend pads as drained
Otherwise when switching out a group with a deadend pad it will block as it would be waiting for EOS on a deadend that already got one https://bugzilla.gnome.org/show_bug.cgi?id=733169
This commit is contained in:
parent
6bf3356967
commit
9c09c8ae17
@ -2653,8 +2653,13 @@ pad_event_cb (GstPad * pad, GstPadProbeInfo * info, gpointer data)
|
|||||||
GST_DEBUG_OBJECT (dbin, "Received EOS on a non final pad, this stream "
|
GST_DEBUG_OBJECT (dbin, "Received EOS on a non final pad, this stream "
|
||||||
"ended too early");
|
"ended too early");
|
||||||
chain->deadend = TRUE;
|
chain->deadend = TRUE;
|
||||||
|
chain->drained = TRUE;
|
||||||
gst_object_replace ((GstObject **) & chain->current_pad, NULL);
|
gst_object_replace ((GstObject **) & chain->current_pad, NULL);
|
||||||
/* we don't set the endcaps because NULL endcaps means early EOS */
|
/* we don't set the endcaps because NULL endcaps means early EOS */
|
||||||
|
|
||||||
|
/* TODO check if this makes the next_group complete, but drained/deadend,
|
||||||
|
* meaning that it should be skipped and not exposed */
|
||||||
|
|
||||||
EXPOSE_LOCK (dbin);
|
EXPOSE_LOCK (dbin);
|
||||||
if (gst_decode_chain_is_complete (dbin->decode_chain))
|
if (gst_decode_chain_is_complete (dbin->decode_chain))
|
||||||
gst_decode_bin_expose (dbin);
|
gst_decode_bin_expose (dbin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user