[0.11] gstreamer: basesink: handle lists correctly

Wim Taymans wtay at kemper.freedesktop.org
Thu Jan 19 06:18:36 PST 2012


Module: gstreamer
Branch: 0.11
Commit: acf0d50bf1d9d3bc8b412b301c1ef0f8c1517259
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=acf0d50bf1d9d3bc8b412b301c1ef0f8c1517259

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Thu Jan 19 15:17:33 2012 +0100

basesink: handle lists correctly

---

 libs/gst/base/gstbasesink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c
index fdecd9e..b56f8af 100644
--- a/libs/gst/base/gstbasesink.c
+++ b/libs/gst/base/gstbasesink.c
@@ -3323,7 +3323,7 @@ gst_base_sink_chain_list (GstPad * pad, GstObject * parent,
 
     result = GST_FLOW_OK;
     for (i = 0; i < len; i++) {
-      buffer = gst_buffer_list_get (list, 0);
+      buffer = gst_buffer_list_get (list, i);
       result = gst_base_sink_chain_main (basesink, pad,
           gst_buffer_ref (buffer));
       if (result != GST_FLOW_OK)



More information about the gstreamer-commits mailing list