diff options
Diffstat (limited to 'common/encode_lavc.h')
-rw-r--r-- | common/encode_lavc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/encode_lavc.h b/common/encode_lavc.h index c60afb6cc5..125108e538 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; @@ -111,6 +111,6 @@ bool encoder_encode(struct encoder_context *p, AVFrame *frame); // Caller needs to acquire encode_lavc_context.lock (or call it from on_ready). AVRational encoder_get_mux_timebase_unlocked(struct encoder_context *p); -double encoder_get_offset(struct encoder_context *p); +void encoder_update_log(struct mpv_global *global); #endif |