From 5e0c47d41c1d643108212b5943cfb208a8f417be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Mon, 7 Dec 2015 16:39:57 +0100 Subject: [PATCH] avutil/threadmessage: fix build without HAVE_THREADS, new attempt --- libavutil/threadmessage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/threadmessage.c b/libavutil/threadmessage.c index 921d83128b..3281e26285 100644 --- a/libavutil/threadmessage.c +++ b/libavutil/threadmessage.c @@ -93,7 +93,9 @@ int av_thread_message_queue_alloc(AVThreadMessageQueue **mq, void av_thread_message_queue_set_free_func(AVThreadMessageQueue *mq, void (*free_func)(void *msg)) { +#if HAVE_THREADS mq->free_func = free_func; +#endif } void av_thread_message_queue_free(AVThreadMessageQueue **mq)