From 85015e66c35abb31c3f497d271a25e3094ba9243 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 27 Oct 2006 17:13:35 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/volume/gstvolume.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index ce646bd449..1645ef1d6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-27 Wim Taymans + + * 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 Patch by: Mark Nauwelaerts diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 7b61983be1..4d40defb59 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -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);