[libav-devel] [PATCH] pthread: Fix compilation regression at e524ead.

Måns Rullgård mans at mansr.com
Sun Nov 27 01:45:36 CET 2011


Yusuke Nakamura <muken.the.vfrmaniac at gmail.com> writes:

> I encountered the following error.
>
> libavcodec/pthread.c: In function 'frame_thread_free':
> libavcodec/pthread.c:654:13: error: used struct type value where scalar is
> required
> make: *** [libavcodec/pthread.o] Error 1
>
> Attached patch fixes this.
>
> From 38bb521642cc16df3c247595e82ec4d6cc5a87e0 Mon Sep 17 00:00:00 2001
> From: Yusuke Nakamura <muken.the.vfrmaniac at 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)
> -- 

Obviously wrong.

-- 
Måns Rullgård
mans at mansr.com


More information about the libav-devel mailing list