fix SDL issue (CID 1518457) (#19289)

* fix SDL issue (CID 1518457)

* update for comments
This commit is contained in:
Wanglei Shen 2023-08-21 17:43:09 +08:00 committed by GitHub
parent d55e45f677
commit 61fcf3855a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))) || ((latencyThreadingMode == Config::LatencyThreadingMode::PER_PLATFORM) || (proc_type_table.size() == 1))) ||
((input_streams_changed == true) && (input_streams == 1))) { ((input_streams_changed == true) && (input_streams == 1))) {
n_streams = 1; n_streams = 1;
if ((proc_type_table.size() == 1) && (model_prefer_threads > 0) && if ((proc_type_table.size() == 1) && (input_threads == 0) && (model_prefer_threads > 0)) {
((input_threads == 0) || (input_threads == 0))) {
stream_info[NUMBER_OF_STREAMS] = n_streams; stream_info[NUMBER_OF_STREAMS] = n_streams;
if ((model_prefer_threads == proc_type_table[0][MAIN_CORE_PROC]) && if ((model_prefer_threads == proc_type_table[0][MAIN_CORE_PROC]) &&
(proc_type_table[0][MAIN_CORE_PROC] > 0)) { (proc_type_table[0][MAIN_CORE_PROC] > 0)) {