mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
decodebin2: a pad starts out being not drained.
Mark a new pad as not drained until we get EOS on it.
This commit is contained in:
parent
23e603f054
commit
554b3aafe4
1 changed files with 2 additions and 2 deletions
|
@ -1988,7 +1988,7 @@ gst_decode_pad_handle_eos (GstDecodePad * pad)
|
|||
for (tmp = group->endpads; tmp; tmp = g_list_next (tmp)) {
|
||||
GstDecodePad *dpad = (GstDecodePad *) tmp->data;
|
||||
|
||||
GST_LOG_OBJECT (dbin, "testing dpad %p", dpad);
|
||||
GST_LOG_OBJECT (dbin, "testing dpad %p %d", dpad, dpad->drained);
|
||||
|
||||
if (!dpad->drained) {
|
||||
drained = FALSE;
|
||||
|
@ -2397,7 +2397,7 @@ gst_decode_pad_init (GstDecodePad * pad)
|
|||
{
|
||||
pad->group = NULL;
|
||||
pad->blocked = FALSE;
|
||||
pad->drained = TRUE;
|
||||
pad->drained = FALSE;
|
||||
gst_object_ref (pad);
|
||||
gst_object_sink (pad);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue