Commit 3b6de2ba authored by René Stadler's avatar René Stadler
Browse files

audiopanorama: simplify get_unit_size

parent fb633727
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment