summaryrefslogtreecommitdiff
path: root/libavfilter/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-26 02:18:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-26 03:19:55 +0200
commit4cf7b87551f2fd2d6f746acda15d33ded192624d (patch)
tree68c81122473ca96ae9ef0114837a26ace5c97f86 /libavfilter/pthread.c
parentd480b36db4aaf921d2475d0a0152bf91d79cb2ef (diff)
downloadffmpeg-4cf7b87551f2fd2d6f746acda15d33ded192624d.tar.gz
av_cpu_count: factorize "detected %d logical cores" message
Also print the message just once Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/pthread.c')
-rw-r--r--libavfilter/pthread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavfilter/pthread.c b/libavfilter/pthread.c
index 6ceb8e65e3..0630ad2f50 100644
--- a/libavfilter/pthread.c
+++ b/libavfilter/pthread.c
@@ -150,7 +150,6 @@ static int thread_init(ThreadContext *c, int nb_threads)
if (!nb_threads) {
int nb_cpus = av_cpu_count();
- av_log(c->graph, AV_LOG_DEBUG, "Detected %d logical cores.\n", nb_cpus);
// use number of cores + 1 as thread count if there is more than one
if (nb_cpus > 1)
nb_threads = nb_cpus + 1;