mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
decklinkaudiosrc: Fix discont tracking
Don't reset the marker that's tracking disconts until either the discont disappears or we resync.
This commit is contained in:
parent
501930dc0d
commit
0d3cd82749
1 changed files with 2 additions and 1 deletions
|
@ -556,9 +556,10 @@ gst_decklink_audio_src_create (GstPushSrc * bsrc, GstBuffer ** buffer)
|
|||
self->next_offset, start_offset);
|
||||
GST_BUFFER_FLAG_SET (*buffer, GST_BUFFER_FLAG_DISCONT);
|
||||
self->next_offset = end_offset;
|
||||
// Got a discont and adjusted, reset the discont_time marker.
|
||||
self->discont_time = GST_CLOCK_TIME_NONE;
|
||||
} else {
|
||||
// No discont, just keep counting
|
||||
self->discont_time = GST_CLOCK_TIME_NONE;
|
||||
timestamp =
|
||||
gst_util_uint64_scale (self->next_offset, GST_SECOND, self->info.rate);
|
||||
self->next_offset += sample_count;
|
||||
|
|
Loading…
Reference in a new issue