summaryrefslogtreecommitdiffstats
path: root/common/encode_lavc.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 /common/encode_lavc.h
parent3a8b107f6216b38a151d5ca1e9d4f2727e3418f5 (diff)
downloadmpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.bz2
mpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.xz
ALL: use new mp_thread abstraction
Diffstat (limited to 'common/encode_lavc.h')
-rw-r--r--common/encode_lavc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/encode_lavc.h b/common/encode_lavc.h
index ae89c6b572..8517726529 100644
--- a/common/encode_lavc.h
+++ b/common/encode_lavc.h
@@ -22,7 +22,6 @@
#ifndef MPLAYER_ENCODE_LAVC_H
#define MPLAYER_ENCODE_LAVC_H
-#include <pthread.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
@@ -33,6 +32,7 @@
#include "common/common.h"
#include "encode.h"
+#include "osdep/threads.h"
#include "video/csputils.h"
struct encode_lavc_context {
@@ -47,7 +47,7 @@ struct encode_lavc_context {
// All entry points must be guarded with the lock. Functions called by
// the playback core lock this automatically, but ao_lavc.c and vo_lavc.c
// must lock manually before accessing state.
- pthread_mutex_t lock;
+ mp_mutex lock;
// anti discontinuity mode
double next_in_pts;