mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
audio-converter: require interleaved samples and no resampling
We can't yet do resampling or anything other than interleaved audio.
This commit is contained in:
parent
7abed02858
commit
30977cf1a5
1 changed files with 3 additions and 0 deletions
|
@ -231,6 +231,9 @@ gst_audio_converter_new (GstAudioInfo * in, GstAudioInfo * out,
|
|||
|
||||
g_return_val_if_fail (in != NULL, FALSE);
|
||||
g_return_val_if_fail (out != NULL, FALSE);
|
||||
g_return_val_if_fail (in->rate == out->rate, FALSE);
|
||||
g_return_val_if_fail (in->layout == GST_AUDIO_LAYOUT_INTERLEAVED, FALSE);
|
||||
g_return_val_if_fail (in->layout == out->layout, FALSE);
|
||||
|
||||
if ((GST_AUDIO_INFO_CHANNELS (in) != GST_AUDIO_INFO_CHANNELS (out)) &&
|
||||
(GST_AUDIO_INFO_IS_UNPOSITIONED (in)
|
||||
|
|
Loading…
Reference in a new issue