summaryrefslogtreecommitdiffstats
path: root/sub/osd_state.h
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-21 04:55:41 +0200
committerDudemanguy <random342@airmail.cc>2023-11-05 17:36:17 +0000
commit174df99ffa53f1091589eaa4fa0c16cdd55a9326 (patch)
tree3a60d45615f18beed98a9b08267c28ed7e05dd5f /sub/osd_state.h
parent3a8b107f6216b38a151d5ca1e9d4f2727e3418f5 (diff)
downloadmpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.bz2
mpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.xz
ALL: use new mp_thread abstraction
Diffstat (limited to 'sub/osd_state.h')
-rw-r--r--sub/osd_state.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/osd_state.h b/sub/osd_state.h
index 79f7b902d8..9bb48f8153 100644
--- a/sub/osd_state.h
+++ b/sub/osd_state.h
@@ -1,10 +1,10 @@
#ifndef MP_OSD_STATE_H_
#define MP_OSD_STATE_H_
-#include <pthread.h>
#include <stdatomic.h>
#include "osd.h"
+#include "osdep/threads.h"
enum mp_osdtype {
OSDTYPE_SUB,
@@ -66,7 +66,7 @@ struct osd_external {
};
struct osd_state {
- pthread_mutex_t lock;
+ mp_mutex lock;
struct osd_object *objs[MAX_OSD_PARTS];