diff --git a/ChangeLog b/ChangeLog index b29467a38f..f23222cf2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-07-05 Wim Taymans + + * libs/gst/base/gstbasesink.c: (gst_base_sink_preroll_object), + (gst_base_sink_loop), (gst_base_sink_get_position): + When operating in pull mode update the offset so that we + read sequentially. + 2006-07-05 Wim Taymans * gst/gstregistryxml.c: (read_string): diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index fc16faadde..3f1261c379 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -1980,6 +1980,8 @@ gst_base_sink_loop (GstPad * pad) if (G_UNLIKELY (buf == NULL)) goto no_buffer; + basesink->offset += GST_BUFFER_SIZE (buf); + GST_PAD_PREROLL_LOCK (pad); result = gst_base_sink_chain_unlocked (basesink, pad, buf); GST_PAD_PREROLL_UNLOCK (pad);