audiobuffersplit: Always set DISCONT flag after resyncs
diff --git a/gst/audiobuffersplit/gstaudiobuffersplit.c b/gst/audiobuffersplit/gstaudiobuffersplit.c
index 225fb9b..daf445b 100644
--- a/gst/audiobuffersplit/gstaudiobuffersplit.c
+++ b/gst/audiobuffersplit/gstaudiobuffersplit.c
@@ -345,6 +345,10 @@
size = MIN (size, avail);
buffer = gst_adapter_take_buffer (self->adapter, size);
+ /* After a reset we have to set the discont flag */
+ if (self->current_offset == 0)
+ GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT);
+
resync_time_diff =
gst_util_uint64_scale (self->current_offset, GST_SECOND, rate);
if (self->segment.rate < 0.0) {