Commit 85015e66 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/volume/gstvolume.c: Use stream time to synchronize volume property instead...

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.
parent f0122df5
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> 2006-10-27 Wim Taymans <wim@fluendo.com>
   
Patch by: Mark Nauwelaerts <manauw at skynet dot be> Patch by: Mark Nauwelaerts <manauw at skynet dot be>
...@@ -481,6 +481,11 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf) ...@@ -481,6 +481,11 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
/* FIXME: subdivide GST_BUFFER_SIZE into small chunks for smooth fades */ /* FIXME: subdivide GST_BUFFER_SIZE into small chunks for smooth fades */
timestamp = GST_BUFFER_TIMESTAMP (outbuf); 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)) if (GST_CLOCK_TIME_IS_VALID (timestamp))
gst_object_sync_values (G_OBJECT (this), timestamp); gst_object_sync_values (G_OBJECT (this), timestamp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment