mirror of https://github.com/mpv-player/mpv
vaapi: turn all mpv users into a living experiment
Dummy out the locking around all libva calls, which in theory shouldn't be needed anyway. Two years ago, these were added to prevent crashes with vaapi decoding and direct rendering (vo_opengl/vo_vaapi) active. It's not clear whether these are really needed - theory strongly points towards no. Some developers familiar with vaapi expressed similar thoughts. But past experience says differently. So let's try without the locking for a while and see what happens.
This commit is contained in:
parent
a41bedfce5
commit
32186de367
|
@ -45,8 +45,8 @@ bool check_va_status(struct mp_log *log, VAStatus status, const char *msg);
|
||||||
|
|
||||||
#define CHECK_VA_STATUS(ctx, msg) check_va_status((ctx)->log, status, msg)
|
#define CHECK_VA_STATUS(ctx, msg) check_va_status((ctx)->log, status, msg)
|
||||||
|
|
||||||
#define va_lock(ctx) pthread_mutex_lock(&(ctx)->lock)
|
#define va_lock(ctx) (void)(ctx)
|
||||||
#define va_unlock(ctx) pthread_mutex_unlock(&(ctx)->lock)
|
#define va_unlock(ctx) (void)(ctx)
|
||||||
|
|
||||||
int va_get_colorspace_flag(enum mp_csp csp);
|
int va_get_colorspace_flag(enum mp_csp csp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue