summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2020-08-05 16:57:15 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2020-08-05 18:16:32 +0200
commit1522e40397a9213e3b1badd7a332938f4b17fb21 (patch)
tree3b1bce572d96b9be6201882d6bbcf3959e45d9ed
parentcee211123a63c54dd2a72a4898a33ac5421d95da (diff)
cccombiner: update to new samples selection API
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1497>
-rw-r--r--ext/closedcaption/gstcccombiner.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/closedcaption/gstcccombiner.c b/ext/closedcaption/gstcccombiner.c
index b237df346..ce627bc09 100644
--- a/ext/closedcaption/gstcccombiner.c
+++ b/ext/closedcaption/gstcccombiner.c
@@ -98,7 +98,9 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout)
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_aggregator_selected_samples (GST_AGGREGATOR_CAST (self),
+ GST_BUFFER_PTS (video_buf), GST_BUFFER_DTS (video_buf),
+ GST_BUFFER_DURATION (video_buf));
goto done;
}
@@ -204,7 +206,10 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout)
gst_aggregator_pad_drop_buffer (caption_pad);
} 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) {
guint i;