diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-10-21 04:55:41 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-05 17:36:17 +0000 |
commit | 174df99ffa53f1091589eaa4fa0c16cdd55a9326 (patch) | |
tree | 3a60d45615f18beed98a9b08267c28ed7e05dd5f /video/out/vo_lavc.c | |
parent | 3a8b107f6216b38a151d5ca1e9d4f2727e3418f5 (diff) | |
download | mpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.bz2 mpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.xz |
ALL: use new mp_thread abstraction
Diffstat (limited to 'video/out/vo_lavc.c')
-rw-r--r-- | video/out/vo_lavc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index c3c8056c49..7170c1d5e7 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -192,7 +192,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *voframe) return; // Lock for shared timestamp fields. - pthread_mutex_lock(&ectx->lock); + mp_mutex_lock(&ectx->lock); double pts = mpi->pts; double outpts = pts; @@ -222,7 +222,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *voframe) ectx->next_in_pts = nextpts; } - pthread_mutex_unlock(&ectx->lock); + mp_mutex_unlock(&ectx->lock); AVFrame *frame = mp_image_to_av_frame(mpi); MP_HANDLE_OOM(frame); |