mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
adder: Sync pad properties with the GstController
This commit is contained in:
parent
561ce54b27
commit
3974379a7f
1 changed files with 10 additions and 0 deletions
|
@ -1257,6 +1257,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
|
||||||
GstCollectData *collect_data;
|
GstCollectData *collect_data;
|
||||||
GstBuffer *inbuf;
|
GstBuffer *inbuf;
|
||||||
gboolean is_gap;
|
gboolean is_gap;
|
||||||
|
GstClockTime timestamp, stream_time;
|
||||||
|
|
||||||
/* take next to see if this is the last collectdata */
|
/* take next to see if this is the last collectdata */
|
||||||
next = g_slist_next (collected);
|
next = g_slist_next (collected);
|
||||||
|
@ -1273,6 +1274,15 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timestamp = GST_BUFFER_TIMESTAMP (inbuf);
|
||||||
|
stream_time =
|
||||||
|
gst_segment_to_stream_time (&collect_data->segment, GST_FORMAT_TIME,
|
||||||
|
timestamp);
|
||||||
|
|
||||||
|
/* sync object properties on stream time */
|
||||||
|
if (GST_CLOCK_TIME_IS_VALID (stream_time))
|
||||||
|
gst_object_sync_values (GST_OBJECT (collect_data->pad), stream_time);
|
||||||
|
|
||||||
is_gap = GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_GAP);
|
is_gap = GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_GAP);
|
||||||
|
|
||||||
/* Try to make an output buffer */
|
/* Try to make an output buffer */
|
||||||
|
|
Loading…
Reference in a new issue