diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-08-17 16:37:31 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-08-17 16:40:16 +0300 |
commit | 2f761b89df4a705755d934b74053a7d71ad4f2ea (patch) | |
tree | 90d060cc2de555d0324fbb0daf9222ea7382ff28 | |
parent | b2602a459bba43f103872a072b5ee91685e70c71 (diff) |
audiobuffersplit: Always set DISCONT flag after resyncs
-rw-r--r-- | gst/audiobuffersplit/gstaudiobuffersplit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/audiobuffersplit/gstaudiobuffersplit.c b/gst/audiobuffersplit/gstaudiobuffersplit.c index 225fb9b7b..daf445b69 100644 --- a/gst/audiobuffersplit/gstaudiobuffersplit.c +++ b/gst/audiobuffersplit/gstaudiobuffersplit.c @@ -345,6 +345,10 @@ gst_audio_buffer_split_output (GstAudioBufferSplit * self, gboolean force, 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) { |