gst/volume/gstvolume.c: Use stream time to synchronize volume property instead of rather random timestamps. This is n...

Original commit message from CVS:
* gst/volume/gstvolume.c: (volume_transform_ip):
Use stream time to synchronize volume property instead of rather random
timestamps. This is needed when gnonlin does its time shifting.
This commit is contained in:
Wim Taymans 2006-10-27 17:13:35 +00:00
parent f0122df5c4
commit 85015e66c3
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-10-27 Wim Taymans <wim@fluendo.com>
* gst/volume/gstvolume.c: (volume_transform_ip):
Use stream time to synchronize volume property instead of rather random
timestamps. This is needed when gnonlin does its time shifting.
2006-10-27 Wim Taymans <wim@fluendo.com>
Patch by: Mark Nauwelaerts <manauw at skynet dot be>

View file

@ -481,6 +481,11 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
/* FIXME: subdivide GST_BUFFER_SIZE into small chunks for smooth fades */
timestamp = GST_BUFFER_TIMESTAMP (outbuf);
timestamp =
gst_segment_to_stream_time (&base->segment, GST_FORMAT_TIME, timestamp);
GST_DEBUG_OBJECT (base, "sync to %" GST_TIME_FORMAT,
GST_TIME_ARGS (timestamp));
if (GST_CLOCK_TIME_IS_VALID (timestamp))
gst_object_sync_values (G_OBJECT (this), timestamp);