Commit 0e5cc174 authored by Luca Barbato's avatar Luca Barbato

win32: improve threading algorithm warning

If no threading is requested do not issue warning about unsupported
threading algorithm.
parent b036a718
...@@ -130,8 +130,10 @@ int ff_thread_init(AVCodecContext *s){ ...@@ -130,8 +130,10 @@ int ff_thread_init(AVCodecContext *s){
ThreadContext *c; ThreadContext *c;
uint32_t threadid; uint32_t threadid;
if(!(s->thread_type & FF_THREAD_SLICE)){ if (s->thread_type && !(s->thread_type & FF_THREAD_SLICE)) {
av_log(s, AV_LOG_WARNING, "The requested thread algorithm is not supported with this thread library.\n"); av_log(s, AV_LOG_WARNING,
"This thread library only supports FF_THREAD_SLICE"
" threading algorithm.\n");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment