From 38bb521642cc16df3c247595e82ec4d6cc5a87e0 Mon Sep 17 00:00:00 2001
From: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Date: Sun, 27 Nov 2011 09:25:08 +0900
Subject: [PATCH] pthread: Fix compilation regression at e524ead.

---
 libavcodec/pthread.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index dae28e6..93971a4 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -651,7 +651,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
         pthread_cond_signal(&p->input_cond);
         pthread_mutex_unlock(&p->mutex);
 
-        if (p->thread)
+        if (p->thread.p)
             pthread_join(p->thread, NULL);
 
         if (codec->close)
-- 
1.7.0.2.msysgit.0

