diff options
author | Clément Bœsch <clement@stupeflix.com> | 2015-12-07 16:39:57 +0100 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2015-12-07 16:39:57 +0100 |
commit | 5e0c47d41c1d643108212b5943cfb208a8f417be (patch) | |
tree | 0262aa16059940001fa7ff5ec3ca63d68a62cd53 | |
parent | 312c83e05711cba2a69690ac3b5a94b153b55aeb (diff) | |
download | ffmpeg-5e0c47d41c1d643108212b5943cfb208a8f417be.tar.gz |
avutil/threadmessage: fix build without HAVE_THREADS, new attempt
-rw-r--r-- | libavutil/threadmessage.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |