volume: use new api to check activity of a controller

This commit is contained in:
Stefan Sauer 2011-11-04 21:00:29 +01:00
parent 0019bcaa47
commit 6c2f5317c7

View 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);