mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
f0122df5c4
commit
85015e66c3
2 changed files with 11 additions and 0 deletions
|
@ -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>
|
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)
|
||||||
|
|
||||||
/* 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);
|
||||||
|
|
Loading…
Reference in a new issue