diff --git a/ext/closedcaption/gstcccombiner.c b/ext/closedcaption/gstcccombiner.c index ce627bc09d..20c5587058 100644 --- a/ext/closedcaption/gstcccombiner.c +++ b/ext/closedcaption/gstcccombiner.c @@ -100,7 +100,7 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout) 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)); + GST_BUFFER_DURATION (video_buf), NULL); goto done; } @@ -209,7 +209,7 @@ gst_cc_combiner_collect_captions (GstCCCombiner * self, gboolean timeout) 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)); + GST_BUFFER_DURATION (self->current_video_buffer), NULL); if (self->current_frame_captions->len > 0) { guint i; diff --git a/tests/check/elements/cccombiner.c b/tests/check/elements/cccombiner.c index 82533e9262..863da0df01 100644 --- a/tests/check/elements/cccombiner.c +++ b/tests/check/elements/cccombiner.c @@ -70,7 +70,9 @@ GstBuffer *expected_video_buffer = NULL; GstBuffer *expected_caption_buffer = NULL; static void -samples_selected_cb (GstAggregator * agg) +samples_selected_cb (GstAggregator * agg, GstSegment * segment, + GstClockTime pts, GstClockTime dts, GstClockTime duration, + GstStructure * info, gpointer user_data) { GstBufferList *buflist; GstPad *caption_pad =