From 3b6de2bacd378fa256f99bc7803e1aa7a383a3ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Fri, 28 Oct 2011 21:26:33 +0200 Subject: [PATCH] audiopanorama: simplify get_unit_size --- gst/audiofx/audiopanorama.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst/audiofx/audiopanorama.c b/gst/audiofx/audiopanorama.c index 4c27ad7..5875a52 100644 --- a/gst/audiofx/audiopanorama.c +++ b/gst/audiofx/audiopanorama.c @@ -302,16 +302,13 @@ gst_audio_panorama_get_unit_size (GstBaseTransform * base, GstCaps * caps, gsize * size) { GstAudioInfo info; - gint width, channels; g_assert (size); if (!gst_audio_info_from_caps (&info, caps)) return FALSE; - width = GST_AUDIO_INFO_WIDTH (&info); - channels = GST_AUDIO_INFO_CHANNELS (&info); - *size = width * channels / 8; + *size = GST_AUDIO_INFO_BPF (&info); return TRUE; } -- 2.7.4