mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Remove vaapi Lock for DRM
This commit is contained in:
parent
7b41b9b45a
commit
9219f06c5a
@ -61,7 +61,7 @@ extern void ToggleLUT();
|
|||||||
/// vdr-plugin version number.
|
/// vdr-plugin version number.
|
||||||
/// Makefile extracts the version number for generating the file name
|
/// Makefile extracts the version number for generating the file name
|
||||||
/// for the distribution archive.
|
/// for the distribution archive.
|
||||||
static const char *const VERSION = "3.8"
|
static const char *const VERSION = "3.9"
|
||||||
#ifdef GIT_REV
|
#ifdef GIT_REV
|
||||||
"-GIT" GIT_REV
|
"-GIT" GIT_REV
|
||||||
#endif
|
#endif
|
||||||
|
8
video.c
8
video.c
@ -2375,7 +2375,11 @@ 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
|
||||||
|
SharedContext;
|
||||||
|
#else
|
||||||
Lock_and_SharedContext;
|
Lock_and_SharedContext;
|
||||||
|
#endif
|
||||||
for (n = 0; n < 2; n++) { // Set DMA_BUF from VAAPI decoder to Textures
|
for (n = 0; n < 2; n++) { // Set DMA_BUF from VAAPI decoder to Textures
|
||||||
int id = desc.layers[n].object_index[0];
|
int id = desc.layers[n].object_index[0];
|
||||||
int fd = desc.objects[id].fd;
|
int fd = desc.objects[id].fd;
|
||||||
@ -2448,7 +2452,11 @@ 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
|
||||||
|
NoContext;
|
||||||
|
#else
|
||||||
Unlock_and_NoContext;
|
Unlock_and_NoContext;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user