summaryrefslogtreecommitdiffstats
path: root/sub/osd_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'sub/osd_state.h')
-rw-r--r--sub/osd_state.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sub/osd_state.h b/sub/osd_state.h
index 056e54b1a8..9bb48f8153 100644
--- a/sub/osd_state.h
+++ b/sub/osd_state.h
@@ -1,9 +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,
@@ -65,12 +66,12 @@ struct osd_external {
};
struct osd_state {
- pthread_mutex_t lock;
+ mp_mutex lock;
struct osd_object *objs[MAX_OSD_PARTS];
bool render_subs_in_filter;
- double force_video_pts;
+ _Atomic double force_video_pts;
bool want_redraw;
bool want_redraw_notification;