Browse Source

win32: improve threading algorithm warning

If no threading is requested do not issue warning about unsupported
threading algorithm.
tags/n0.9
Luca Barbato 13 years ago
parent
commit
0e5cc174bb
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavcodec/w32thread.c

+ 4
- 2
libavcodec/w32thread.c View File

@@ -130,8 +130,10 @@ int ff_thread_init(AVCodecContext *s){
ThreadContext *c;
uint32_t threadid;

if(!(s->thread_type & FF_THREAD_SLICE)){
av_log(s, AV_LOG_WARNING, "The requested thread algorithm is not supported with this thread library.\n");
if (s->thread_type && !(s->thread_type & FF_THREAD_SLICE)) {
av_log(s, AV_LOG_WARNING,
"This thread library only supports FF_THREAD_SLICE"
" threading algorithm.\n");
return 0;
}



Loading…
Cancel
Save