mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
audioringbuffer: Don't try to map MONO channel
Avoids critical message: gstaudioringbuffer.c: line 2155 (gst_audio_ring_buffer_set_channel_positions): should not be reached Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5721>
This commit is contained in:
parent
14b94ea00b
commit
155224de96
1 changed files with 5 additions and 0 deletions
|
@ -2145,6 +2145,11 @@ gst_audio_ring_buffer_set_channel_positions (GstAudioRingBuffer * buf,
|
||||||
if (memcmp (position, to, channels * sizeof (to[0])) == 0)
|
if (memcmp (position, to, channels * sizeof (to[0])) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (channels == 1) {
|
||||||
|
GST_LOG_OBJECT (buf, "single channel, no need to reorder");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (position_less_channels (position, channels)) {
|
if (position_less_channels (position, channels)) {
|
||||||
GST_LOG_OBJECT (buf, "position-less channels, no need to reorder");
|
GST_LOG_OBJECT (buf, "position-less channels, no need to reorder");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue