From f71889cd4de662eb29d706f8659e86d13a076fd2 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Thu, 17 May 2012 12:48:45 +0200 Subject: Fixed warnings from cppcheck Added setup menu entry to prevent deferred shutdown Added many logos from contributors --- command/decoder.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'command/decoder.cpp') 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); } -- cgit v1.2.3