decklink: Reset skip counters when starting the sources

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/378>
This commit is contained in:
Sebastian Dröge 2020-10-25 11:46:29 +02:00
parent 675d8b347b
commit 8a923af42f
2 changed files with 8 additions and 0 deletions

View file

@ -470,6 +470,10 @@ gst_decklink_audio_src_start (GstDecklinkAudioSrc * self)
}
gst_caps_unref (caps);
self->skipped_last = 0;
self->skip_from_timestamp = GST_CLOCK_TIME_NONE;
self->skip_to_timestamp = GST_CLOCK_TIME_NONE;
return TRUE;
}

View file

@ -661,6 +661,10 @@ gst_decklink_video_src_start (GstDecklinkVideoSrc * self)
self->input->start_streams (self->input->videosrc);
g_mutex_unlock (&self->input->lock);
self->skipped_last = 0;
self->skip_from_timestamp = GST_CLOCK_TIME_NONE;
self->skip_to_timestamp = GST_CLOCK_TIME_NONE;
return TRUE;
}