From: Attila Nagy Date: Wed, 30 Mar 2011 12:50:17 +0000 (+0300) Subject: Fix: lpf semaphore was signaled in single threaded run X-Git-Tag: v0.9.7~247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d335868dfb4334b2ed052d2cc51ba5ee6b5af99;p=platform%2Fupstream%2Flibvpx.git Fix: lpf semaphore was signaled in single threaded run After picking filter level, post the loopfilter semaphore just when multiple threads are in use. Change-Id: If7bfb64601d906adef703f454dafc25e978b93c6 --- diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 931c51a..be65545 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -3258,7 +3258,8 @@ void loopfilter_frame(VP8_COMP *cpi, VP8_COMMON *cm) } #if CONFIG_MULTITHREAD - sem_post(&cpi->h_event_end_lpf); /* signal that we have set filter_level */ + if (cpi->b_multi_threaded) + sem_post(&cpi->h_event_end_lpf); /* signal that we have set filter_level */ #endif if (cm->filter_level > 0)