summaryrefslogtreecommitdiffstats
path: root/osdep/threads-posix.h
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-06 04:55:36 +0100
committerDudemanguy <random342@airmail.cc>2023-11-06 04:14:49 +0000
commita7186777de9ac6f4970f167204aa966752cee0db (patch)
tree6ad2ba6fa972f1c6301f76fbcd41f5f7bbbc8c01 /osdep/threads-posix.h
parent84de84b8aa6023efb3f8fac368d802359657268c (diff)
downloadmpv-a7186777de9ac6f4970f167204aa966752cee0db.tar.bz2
mpv-a7186777de9ac6f4970f167204aa966752cee0db.tar.xz
threads: unbreak mpv on builds without asserts
Also remove duplicated macro. Fixes: #12818 #12820
Diffstat (limited to 'osdep/threads-posix.h')
-rw-r--r--osdep/threads-posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/threads-posix.h b/osdep/threads-posix.h
index 02388a5acf..ea1d86fdb5 100644
--- a/osdep/threads-posix.h
+++ b/osdep/threads-posix.h
@@ -122,6 +122,7 @@ static inline int mp_mutex_init_type_internal(mp_mutex *mutex, enum mp_mutex_typ
pthread_mutexattr_settype(&attr, mutex_type);
ret = pthread_mutex_init(mutex, &attr);
pthread_mutexattr_destroy(&attr);
+ assert(!ret);
return ret;
}