adder: Fill in offset_end field of outgoing buffers
authorLeo Singer <leo.singer@ligo.org>
Tue, 22 Feb 2011 04:34:41 +0000 (20:34 -0800)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 24 Feb 2011 12:28:13 +0000 (13:28 +0100)
... rather than leave it as GST_BUFFER_OFFSET_NONE

Fix bug #642942.

gst/adder/gstadder.c

index ab2abd7022fe1b86ba04c9ab15e0eb3b79383be7..fca3eb2325ab5abadffe0ddd33be410436f710b9 100644 (file)
@@ -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;
   }