mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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)
|
gsize * size)
|
||||||
{
|
{
|
||||||
GstAudioInfo info;
|
GstAudioInfo info;
|
||||||
gint width, channels;
|
|
||||||
|
|
||||||
if (!gst_audio_info_from_caps (&info, caps))
|
if (!gst_audio_info_from_caps (&info, caps))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
width = GST_AUDIO_INFO_WIDTH (&info);
|
*size = GST_AUDIO_INFO_BPF (&info);
|
||||||
channels = GST_AUDIO_INFO_CHANNELS (&info);
|
|
||||||
|
|
||||||
*size = (width / 8) * channels;
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue