From: Wim Taymans Date: Mon, 2 Apr 2012 09:11:33 +0000 (+0200) Subject: volume: use transform_ip_on_passthrough X-Git-Tag: 1.19.3~511^2~6624 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf908a385b2de267316cfd8a6138aaf6cf340f2e;p=platform%2Fupstream%2Fgstreamer.git volume: use transform_ip_on_passthrough --- diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 7de525c..babb819 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);