Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2015-12-07 18:39:57 +0300
committerClément Bœsch <clement@stupeflix.com>2015-12-07 18:39:57 +0300
commit5e0c47d41c1d643108212b5943cfb208a8f417be (patch)
tree0262aa16059940001fa7ff5ec3ca63d68a62cd53 /libavutil/threadmessage.c
parent312c83e05711cba2a69690ac3b5a94b153b55aeb (diff)
avutil/threadmessage: fix build without HAVE_THREADS, new attempt
Diffstat (limited to 'libavutil/threadmessage.c')
-rw-r--r--libavutil/threadmessage.c2
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)