mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
audiofilter: use BPF for unit_size
This commit is contained in:
parent
4f9dea137f
commit
b70275fa10
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue