volume: use new api to check activity of a controller
authorStefan Sauer <ensonic@users.sf.net>
Fri, 4 Nov 2011 20:00:29 +0000 (21:00 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Fri, 4 Nov 2011 20:00:29 +0000 (21:00 +0100)
gst/volume/gstvolume.c

index 9d3473f..5f4c0c0 100644 (file)
@@ -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);