Fix an error in ma_data_source_get_channel_map().

This commit is contained in:
David Reid
2026-06-29 07:34:06 +10:00
parent b0a09dee88
commit 1c1ea6ec93
+1 -1
View File
@@ -69734,7 +69734,7 @@ MA_API ma_result ma_data_source_get_channel_map(ma_data_source* pDataSource, ma_
/* Most likely this just means MA_DATA_SOURCE_GET_CHANNEL_MAP is not implemented which means it's wants to use the default channel map. Just assume that. */
ma_data_source_data_format dataFormat;
result = ma_data_source_prop(pDataSource, MA_DATA_SOURCE_GET_DATA_FORMAT, pQueriedChannelMap);
result = ma_data_source_prop(pDataSource, MA_DATA_SOURCE_GET_DATA_FORMAT, &dataFormat);
if (result != MA_SUCCESS) {
return result; /* Do not know the channel count. Cannot derived a default channel map. */
}