summaryrefslogtreecommitdiffstats
path: root/misc/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/dispatch.c')
-rw-r--r--misc/dispatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/dispatch.c b/misc/dispatch.c
index 428fd9b4f0..1102c564ae 100644
--- a/misc/dispatch.c
+++ b/misc/dispatch.c
@@ -274,6 +274,7 @@ void mp_dispatch_queue_process(struct mp_dispatch_queue *queue, double timeout)
// while the dispatch item is processed.
// At the same time, we must prevent other threads from returning
// from mp_dispatch_lock(), which is done by locked=true.
+ assert(!queue->locked);
queue->locked = true;
pthread_mutex_unlock(&queue->lock);