mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
more PIP fixes
This commit is contained in:
parent
e3d0ccba9a
commit
6f892bb8d1
7
video.c
7
video.c
@ -1981,14 +1981,17 @@ static void CuvidDelHwDecoder(CuvidDecoder * decoder)
|
|||||||
{
|
{
|
||||||
int i,n;
|
int i,n;
|
||||||
Debug(3,"cuvid del hw decoder cuda_ctx %p\n",decoder->cuda_ctx);
|
Debug(3,"cuvid del hw decoder cuda_ctx %p\n",decoder->cuda_ctx);
|
||||||
// pthread_mutex_lock(&VideoLockMutex);
|
if (decoder == CuvidDecoders[0])
|
||||||
|
pthread_mutex_lock(&VideoLockMutex);
|
||||||
|
|
||||||
glXMakeCurrent(XlibDisplay, VideoWindow, GlxSharedContext);
|
glXMakeCurrent(XlibDisplay, VideoWindow, GlxSharedContext);
|
||||||
GlxCheck();
|
GlxCheck();
|
||||||
if (decoder->SurfaceFreeN || decoder->SurfaceUsedN) {
|
if (decoder->SurfaceFreeN || decoder->SurfaceUsedN) {
|
||||||
CuvidDestroySurfaces(decoder);
|
CuvidDestroySurfaces(decoder);
|
||||||
}
|
}
|
||||||
// pthread_mutex_unlock(&VideoLockMutex);
|
if (decoder == CuvidDecoders[0])
|
||||||
|
pthread_mutex_unlock(&VideoLockMutex);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (decoder->cuda_ctx) {
|
if (decoder->cuda_ctx) {
|
||||||
cuCtxDestroy (decoder->cuda_ctx);
|
cuCtxDestroy (decoder->cuda_ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user