From 7aff9c86006a5640f2cc17fc2d7a2a904c9201fc Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 14 Mar 2024 20:25:52 +0900 Subject: [PATCH] asio: Fix {input,output}-channels property handling Fixing regression introduced by the commit 06dc931b52fbd858640506616f5a1a928792b27c Part-of: --- subprojects/gst-plugins-bad/sys/asio/gstasiosink.cpp | 2 +- subprojects/gst-plugins-bad/sys/asio/gstasiosrc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/asio/gstasiosink.cpp b/subprojects/gst-plugins-bad/sys/asio/gstasiosink.cpp index 46b805ff5c..2cde4943d3 100644 --- a/subprojects/gst-plugins-bad/sys/asio/gstasiosink.cpp +++ b/subprojects/gst-plugins-bad/sys/asio/gstasiosink.cpp @@ -321,7 +321,7 @@ gst_asio_sink_create_ringbuffer (GstAudioBaseSink * sink) for (i = 0; i < max_output_ch; i++) channel_indices.push_back (i); } else { - for (auto iter : channel_indices) + for (auto iter : channel_list) channel_indices.push_back (iter); } diff --git a/subprojects/gst-plugins-bad/sys/asio/gstasiosrc.cpp b/subprojects/gst-plugins-bad/sys/asio/gstasiosrc.cpp index b0f8b159fc..1fc3fce786 100644 --- a/subprojects/gst-plugins-bad/sys/asio/gstasiosrc.cpp +++ b/subprojects/gst-plugins-bad/sys/asio/gstasiosrc.cpp @@ -334,7 +334,7 @@ gst_asio_src_create_ringbuffer (GstAudioBaseSrc * src) for (i = 0; i < max_input_ch; i++) channel_indices.push_back (i); } else { - for (auto iter : channel_indices) + for (auto iter : channel_list) channel_indices.push_back (iter); }