Disable vaapi Lock only with placebo

This commit is contained in:
jojo61 2023-04-22 13:07:57 +02:00
parent 0621ed064d
commit 8aa807eec6
1 changed files with 2 additions and 2 deletions

View File

@ -2375,7 +2375,7 @@ void generateVAAPIImage(CuvidDecoder *decoder, int index, const AVFrame *frame,
return; return;
} }
// vaSyncSurface(decoder->VaDisplay, (unsigned int)frame->data[3]); // vaSyncSurface(decoder->VaDisplay, (unsigned int)frame->data[3]);
#ifdef USE_DRM #if defined USE_DRM && defined PLACEBO_GL
SharedContext; SharedContext;
#else #else
Lock_and_SharedContext; Lock_and_SharedContext;
@ -2452,7 +2452,7 @@ void generateVAAPIImage(CuvidDecoder *decoder, int index, const AVFrame *frame,
decoder->pl_frames[index].planes[n].texture = pl_tex_create(p->gpu, &tex_params); decoder->pl_frames[index].planes[n].texture = pl_tex_create(p->gpu, &tex_params);
} }
#ifdef USE_DRM #if defined USE_DRM && defined PLACEBO_GL
NoContext; NoContext;
#else #else
Unlock_and_NoContext; Unlock_and_NoContext;