libs/gst/base/gstbasesink.c: When operating in pull mode update the offset so that we read sequentially.

Original commit message from CVS:
* 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.
This commit is contained in:
Wim Taymans 2006-07-05 18:18:47 +00:00
parent 09f47d182f
commit 931ef328d8
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-07-05 Wim Taymans <wim@fluendo.com>
* 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 <wim@fluendo.com>
* gst/gstregistryxml.c: (read_string):

View file

@ -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);