diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-05-17 12:48:45 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-05-17 12:48:45 +0200 |
commit | f71889cd4de662eb29d706f8659e86d13a076fd2 (patch) | |
tree | f2f40415b05ebfaf18c3d39c16796f4b0eab0c21 /command/decoder.cpp | |
parent | 0942647e18e14cfd5f1ab651da0660618490d834 (diff) | |
download | vdr-plugin-markad-f71889cd4de662eb29d706f8659e86d13a076fd2.tar.gz vdr-plugin-markad-f71889cd4de662eb29d706f8659e86d13a076fd2.tar.bz2 |
Fixed warnings from cppcheck
Added setup menu entry to prevent deferred shutdown
Added many logos from contributors
Diffstat (limited to 'command/decoder.cpp')
-rw-r--r-- | command/decoder.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/command/decoder.cpp b/command/decoder.cpp index e35961e..4b112c8 100644 --- a/command/decoder.cpp +++ b/command/decoder.cpp @@ -115,12 +115,8 @@ cMarkAdDecoder::cMarkAdDecoder(bool useH264, int Threads) cpu_set_t cpumask; uint len = sizeof(cpumask); - int cpucount; - if (sched_getaffinity(0,len,&cpumask)<0) - { - cpucount=1; - } - else + int cpucount=1; + if (sched_getaffinity(0,len,&cpumask)>=0) { cpucount=CPU_COUNT(&cpumask); } |