Have ma_node_graph_init() fail if a config is not specified.

The config is required for the channel count.
This commit is contained in:
David Reid
2026-01-05 09:37:46 +10:00
parent d3270d8bf1
commit 0d94eb7da9
+5
View File
@@ -74813,6 +74813,11 @@ MA_API ma_result ma_node_graph_init(const ma_node_graph_config* pConfig, const m
}
MA_ZERO_OBJECT(pNodeGraph);
if (pConfig == NULL) {
return MA_INVALID_ARGS;
}
pNodeGraph->processingSizeInFrames = pConfig->processingSizeInFrames;
/* Data source. */