cccombiner: Update for additional info parameter to the "samples-selected" signal
authorSebastian Dröge <sebastian@centricular.com>
Fri, 7 Aug 2020 06:37:20 +0000 (09:37 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 7 Aug 2020 17:53:14 +0000 (17:53 +0000)
See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/590

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1498>

ext/closedcaption/gstcccombiner.c
tests/check/elements/cccombiner.c

index ce627bc..20c5587 100644 (file)
@@ -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;
index 82533e9..863da0d 100644 (file)
@@ -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 =