From: Wim Taymans Date: Fri, 28 Oct 2011 09:37:31 +0000 (+0200) Subject: audiofilter: use BPF for unit_size X-Git-Tag: 1.19.3~511^2~7240 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b70275fa1074e17d2058ab6d9068a60491624a53;p=platform%2Fupstream%2Fgstreamer.git audiofilter: use BPF for unit_size --- diff --git a/gst-libs/gst/audio/gstaudiofilter.c b/gst-libs/gst/audio/gstaudiofilter.c index 3e08049..8eba036 100644 --- a/gst-libs/gst/audio/gstaudiofilter.c +++ b/gst-libs/gst/audio/gstaudiofilter.c @@ -146,15 +146,11 @@ gst_audio_filter_get_unit_size (GstBaseTransform * btrans, GstCaps * caps, gsize * size) { GstAudioInfo info; - gint width, channels; if (!gst_audio_info_from_caps (&info, caps)) return FALSE; - width = GST_AUDIO_INFO_WIDTH (&info); - channels = GST_AUDIO_INFO_CHANNELS (&info); - - *size = (width / 8) * channels; + *size = GST_AUDIO_INFO_BPF (&info); return TRUE; }