diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-04-02 11:11:33 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-04-02 11:11:33 +0200 |
commit | bf908a385b2de267316cfd8a6138aaf6cf340f2e (patch) | |
tree | 27095aa125b80527a6a908384b9dd8bb5feb164a | |
parent | 6e9d28eef6f6992d6c188c3f4591b2b367e47678 (diff) |
volume: use transform_ip_on_passthrough
-rw-r--r-- | gst/volume/gstvolume.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 7de525c94..babb819df 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -405,6 +405,8 @@ gst_volume_class_init (GstVolumeClass * klass) trans_class->before_transform = GST_DEBUG_FUNCPTR (volume_before_transform); trans_class->transform_ip = GST_DEBUG_FUNCPTR (volume_transform_ip); trans_class->stop = GST_DEBUG_FUNCPTR (volume_stop); + trans_class->transform_ip_on_passthrough = FALSE; + filter_class->setup = GST_DEBUG_FUNCPTR (volume_setup); } @@ -810,9 +812,8 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf) if (G_UNLIKELY (!self->negotiated)) goto not_negotiated; - /* don't process data in passthrough-mode */ - if (gst_base_transform_is_passthrough (base) || - GST_BUFFER_FLAG_IS_SET (outbuf, GST_BUFFER_FLAG_GAP)) + /* don't process data with GAP */ + if (GST_BUFFER_FLAG_IS_SET (outbuf, GST_BUFFER_FLAG_GAP)) return GST_FLOW_OK; gst_buffer_map (outbuf, &map, GST_MAP_READWRITE); |