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:
wm4 2017-01-11 18:47:27 +01:00
parent a41bedfce5
commit 32186de367
1 changed files with 2 additions and 2 deletions

View File

@ -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);