Skip to content

Commit

Permalink
Do not warn that multithreading is disabled when setting 1 thread (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 authored Jun 19, 2024
1 parent a0f6661 commit 1c58039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flac/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c58039

Please sign in to comment.