Do not warn that multithreading is disabled when setting 1 thread (#710)

This commit is contained in:
Martijn van Beurden 2024-06-19 08:42:08 +02:00 committed by GitHub
parent a0f6661beb
commit 1c5803950e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2047,7 +2047,7 @@ FLAC__bool EncoderSession_init_encoder(EncoderSession *e, encode_options_t optio
}
}
{
if(options.threads != 1) {
uint32_t retval = FLAC__stream_encoder_set_num_threads(e->encoder, options.threads);
if(retval == FLAC__STREAM_ENCODER_SET_NUM_THREADS_NOT_COMPILED_WITH_MULTITHREADING_ENABLED) {
flac__utils_printf(stderr, 1, "%s: WARNING, cannot set number of threads: multithreading was not enabled during compilation of this binary\n", e->inbasefilename);