cccombiner: update to new samples selection API
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1497>
This commit is contained in:
parent
cee211123a
commit
1522e40397
@ -98,7 +98,9 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout)
|
|||||||
GST_LOG_OBJECT (self, "No caption pad, passing through video");
|
GST_LOG_OBJECT (self, "No caption pad, passing through video");
|
||||||
video_buf = self->current_video_buffer;
|
video_buf = self->current_video_buffer;
|
||||||
self->current_video_buffer = NULL;
|
self->current_video_buffer = NULL;
|
||||||
gst_aggregator_selected_samples (GST_AGGREGATOR_CAST (self));
|
gst_aggregator_selected_samples (GST_AGGREGATOR_CAST (self),
|
||||||
|
GST_BUFFER_PTS (video_buf), GST_BUFFER_DTS (video_buf),
|
||||||
|
GST_BUFFER_DURATION (video_buf));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +206,10 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout)
|
|||||||
gst_aggregator_pad_drop_buffer (caption_pad);
|
gst_aggregator_pad_drop_buffer (caption_pad);
|
||||||
} while (TRUE);
|
} while (TRUE);
|
||||||
|
|
||||||
gst_aggregator_selected_samples (GST_AGGREGATOR_CAST (self));
|
gst_aggregator_selected_samples (GST_AGGREGATOR_CAST (self),
|
||||||
|
GST_BUFFER_PTS (self->current_video_buffer),
|
||||||
|
GST_BUFFER_DTS (self->current_video_buffer),
|
||||||
|
GST_BUFFER_DURATION (self->current_video_buffer));
|
||||||
|
|
||||||
if (self->current_frame_captions->len > 0) {
|
if (self->current_frame_captions->len > 0) {
|
||||||
guint i;
|
guint i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user