[FFmpeg-cvslog] avutil/threadmessage: fix build without HAVE_THREADS, new attempt

Clément Bœsch git at videolan.org
Mon Dec 7 16:42:33 CET 2015


ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Mon Dec  7 16:39:57 2015 +0100| [5e0c47d41c1d643108212b5943cfb208a8f417be] | committer: Clément Bœsch

avutil/threadmessage: fix build without HAVE_THREADS, new attempt

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e0c47d41c1d643108212b5943cfb208a8f417be
---

 libavutil/threadmessage.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/threadmessage.c b/libavutil/threadmessage.c
index 921d831..3281e26 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)



More information about the ffmpeg-cvslog mailing list