plugins/elements/gstidentity.c: Unset DISCONT on buffers when using single-segment...
authorMichael Smith <msmith@xiph.org>
Mon, 28 Aug 2006 18:08:09 +0000 (18:08 +0000)
committerMichael Smith <msmith@xiph.org>
Mon, 28 Aug 2006 18:08:09 +0000 (18:08 +0000)
Original commit message from CVS:
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Unset DISCONT on buffers when using single-segment mode.

ChangeLog
plugins/elements/gstidentity.c

index 20e50ed..ff51402 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-28  Michael Smith  <msmith@fluendo.com>
+
+       * plugins/elements/gstidentity.c: (gst_identity_transform_ip):
+         Unset DISCONT on buffers when using single-segment mode.
+
 2006-08-28  Wim Taymans  <wim@fluendo.com>
 
        * gst/gstcaps.c: (gst_caps_merge_structure):
index ca5872b..a9aca01 100644 (file)
@@ -460,6 +460,9 @@ gst_identity_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
     GST_BUFFER_TIMESTAMP (buf) = runtimestamp;
     GST_BUFFER_OFFSET (buf) = GST_CLOCK_TIME_NONE;
     GST_BUFFER_OFFSET_END (buf) = GST_CLOCK_TIME_NONE;
+    /* We're using single-segment to generate a continuous stream, so drop the
+     * DISCONT flag if it was previously set */
+    GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
   }
 
   return ret;