Commit 931ef328 authored by Wim Taymans's avatar Wim Taymans
Browse files

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

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.
parent 09f47d18
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):
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment