From: Leo Singer Date: Tue, 22 Feb 2011 04:34:41 +0000 (-0800) Subject: adder: Fill in offset_end field of outgoing buffers X-Git-Tag: RELEASE-0.10.33~175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27178f7aff309132ce32bba1d995ab59d2466eeb;p=platform%2Fupstream%2Fgst-plugins-base.git adder: Fill in offset_end field of outgoing buffers ... rather than leave it as GST_BUFFER_OFFSET_NONE Fix bug #642942. --- diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index ab2abd702..fca3eb232 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -1208,10 +1208,12 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data) if (adder->segment_rate > 0.0) { GST_BUFFER_TIMESTAMP (outbuf) = adder->timestamp; GST_BUFFER_OFFSET (outbuf) = adder->offset; + GST_BUFFER_OFFSET_END (outbuf) = next_offset; GST_BUFFER_DURATION (outbuf) = next_timestamp - adder->timestamp; } else { GST_BUFFER_TIMESTAMP (outbuf) = next_timestamp; GST_BUFFER_OFFSET (outbuf) = next_offset; + GST_BUFFER_OFFSET_END (outbuf) = adder->offset; GST_BUFFER_DURATION (outbuf) = adder->timestamp - next_timestamp; }