Yusuke Nakamura <[email protected]> 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 <[email protected]>
> 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
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to