From 554b3aafe48bf9bcbb87053e23552c192b100538 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 20 Mar 2009 15:47:47 +0100 Subject: [PATCH] decodebin2: a pad starts out being not drained. Mark a new pad as not drained until we get EOS on it. --- gst/playback/gstdecodebin2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 45876afd78..84ec383446 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -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); }