From 25f056e6d4229937cff8a8c3e974c56b9f94df3c Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 15 Jul 2012 00:11:35 +0300 Subject: vp8: Enclose pthread function calls in ifdefs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes building with threads disabled. Signed-off-by: Martin Storsjö --- libavcodec/vp8.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vp8.h') diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h index 458a11abe0..6b3caa2d51 100644 --- a/libavcodec/vp8.h +++ b/libavcodec/vp8.h @@ -94,8 +94,10 @@ typedef struct { } VP8Macroblock; typedef struct { +#if HAVE_THREADS pthread_mutex_t lock; pthread_cond_t cond; +#endif int thread_nr; int thread_mb_pos; // (mb_y << 16) | (mb_x & 0xFFFF) int wait_mb_pos; // What the current thread is waiting on. -- cgit v1.2.3