adder: Sync pad properties with the GstController

This commit is contained in:
Sebastian Dröge 2013-05-30 11:45:10 +02:00
parent 561ce54b27
commit 3974379a7f

View file

@ -1257,6 +1257,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
GstCollectData *collect_data;
GstBuffer *inbuf;
gboolean is_gap;
GstClockTime timestamp, stream_time;
/* take next to see if this is the last collectdata */
next = g_slist_next (collected);
@ -1273,6 +1274,15 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
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);
/* Try to make an output buffer */