summaryrefslogtreecommitdiff
path: root/gst/volume
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2011-11-04 21:00:29 +0100
committerStefan Sauer <ensonic@users.sf.net>2011-11-04 21:00:29 +0100
commit6c2f5317c7fe717ce0d7c309f3f6b022ed689da3 (patch)
tree1d8e6ddee91a7da18aae85d12d62141c8db78ea6 /gst/volume
parent0019bcaa47893be38391ccdd24540f42c18f58d6 (diff)
volume: use new api to check activity of a controller
Diffstat (limited to 'gst/volume')
-rw-r--r--gst/volume/gstvolume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c
index 9d3473fec..5f4c0c080 100644
--- a/gst/volume/gstvolume.c
+++ b/gst/volume/gstvolume.c
@@ -268,7 +268,7 @@ volume_update_volume (GstVolume * self, gfloat volume, gboolean mute)
* because the property can change from 1.0 to something
* else in the middle of a buffer.
*/
- passthrough = passthrough && (GST_OBJECT (self)->ctrl == NULL);
+ passthrough &= gst_object_has_active_automation (GST_OBJECT (self));
GST_DEBUG_OBJECT (self, "set passthrough %d", passthrough);