mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
videoaggregator: Update for additional info parameter to the "samples-selected" signal
See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/590 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/780>
This commit is contained in:
parent
61800dd435
commit
61064257ef
3 changed files with 5 additions and 3 deletions
|
@ -1773,7 +1773,7 @@ gst_video_aggregator_do_aggregate (GstVideoAggregator * vagg,
|
|||
|
||||
/* Let the application know that input buffers have been staged */
|
||||
gst_aggregator_selected_samples (agg, GST_BUFFER_PTS (*outbuf),
|
||||
GST_BUFFER_DTS (*outbuf), GST_BUFFER_DURATION (*outbuf));
|
||||
GST_BUFFER_DTS (*outbuf), GST_BUFFER_DURATION (*outbuf), NULL);
|
||||
|
||||
/* Convert all the frames the subclass has before aggregating */
|
||||
gst_element_foreach_sink_pad (GST_ELEMENT_CAST (vagg), prepare_frames, NULL);
|
||||
|
|
|
@ -2170,7 +2170,8 @@ static GstBuffer *expected_selected_buffer = NULL;
|
|||
|
||||
static void
|
||||
samples_selected_cb (GstAggregator * agg, GstSegment * segment,
|
||||
GstClockTime pts, GstClockTime dts, GstClockTime duration, gint * called)
|
||||
GstClockTime pts, GstClockTime dts, GstClockTime duration,
|
||||
GstStructure * info, gint * called)
|
||||
{
|
||||
GstPad *pad;
|
||||
GstSample *sample;
|
||||
|
|
|
@ -62,7 +62,8 @@ check_aggregated_buffer (GstElement * agg, GstPad * pad,
|
|||
|
||||
static void
|
||||
samples_selected_cb (GstElement * agg, GstSegment * segment, GstClockTime pts,
|
||||
GstClockTime dts, GstClockTime duration, GHashTable * consumed_buffers)
|
||||
GstClockTime dts, GstClockTime duration, GstStructure * info,
|
||||
GHashTable * consumed_buffers)
|
||||
{
|
||||
gst_printerr
|
||||
("Compositor has selected the samples it will aggregate for output buffer with PTS %"
|
||||
|
|
Loading…
Reference in a new issue