From 65799096bf37110ca23bd8ff5e413e55093b2179 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 29 Aug 2005 20:20:42 +0000 Subject: [PATCH] gst/volume/gstvolume.c: do not update controlled params, if buffer has no timestamp Original commit message from CVS: * gst/volume/gstvolume.c: (gst_volume_class_init), (volume_transform): do not update controlled params, if buffer has no timestamp --- ChangeLog | 6 ++++++ gst/volume/gstvolume.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index af314af..8506408 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-30 Stefan Kost + + * gst/volume/gstvolume.c: (gst_volume_class_init), + (volume_transform): + do not update controlled params, if buffer has no timestamp + 2005-08-29 Stefan Kost * configure.ac: diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index ebc9662..ef77ee6 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -395,7 +395,8 @@ volume_transform (GstBaseTransform * base, GstBuffer * inbuf, { GstVolume *this = GST_VOLUME (base); - gst_object_sink_values (G_OBJECT (this), GST_BUFFER_TIMESTAMP (outbuf)); + if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (outbuf))) + gst_object_sink_values (G_OBJECT (this), GST_BUFFER_TIMESTAMP (outbuf)); this->process (this, GST_BUFFER_TIMESTAMP (outbuf), GST_BUFFER_DATA (outbuf), GST_BUFFER_SIZE (outbuf)); -- 2.7.4