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); }