mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
cccombiner: fix emission of selected-samples in one case
Detected while reading the code, cccombiner must set self->current_video_buffer to NULL *after* emitting selected-samples in order for the application to get a useful return when peeking the next video sample. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1252>
This commit is contained in:
parent
fa1805d531
commit
e730bdaa8e
1 changed files with 1 additions and 1 deletions
|
@ -720,10 +720,10 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout)
|
|||
if (!caption_pad) {
|
||||
GST_LOG_OBJECT (self, "No caption pad, passing through video");
|
||||
video_buf = self->current_video_buffer;
|
||||
self->current_video_buffer = NULL;
|
||||
gst_aggregator_selected_samples (GST_AGGREGATOR_CAST (self),
|
||||
GST_BUFFER_PTS (video_buf), GST_BUFFER_DTS (video_buf),
|
||||
GST_BUFFER_DURATION (video_buf), NULL);
|
||||
self->current_video_buffer = NULL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue