fix SDL issue (CID 1518457) for 2023.1 branch (#19290)

* fix SDL issue (CID 1518457) for 2023.1 branch

* update for comments

* update for comments
This commit is contained in:
Wanglei Shen
2023-08-21 17:43:03 +08:00
committed by GitHub
parent 8a0b844750
commit cd8bb9fb88

View File

@@ -150,8 +150,7 @@ std::vector<std::vector<int>> get_streams_info_table(const int input_streams,
((latencyThreadingMode == Config::LatencyThreadingMode::PER_PLATFORM) || (proc_type_table.size() == 1))) ||
((input_streams_changed == true) && (input_streams == 1))) {
n_streams = 1;
if ((proc_type_table.size() == 1) && (model_prefer_threads > 0) &&
((input_threads == 0) || (input_threads == 0))) {
if ((proc_type_table.size() == 1) && (input_threads == 0) && (model_prefer_threads > 0)) {
stream_info[NUMBER_OF_STREAMS] = n_streams;
if ((model_prefer_threads == proc_type_table[0][MAIN_CORE_PROC]) &&
(proc_type_table[0][MAIN_CORE_PROC] > 0)) {