mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
fixed crash at stop
This commit is contained in:
parent
38307c868f
commit
5f748c6275
5
video.c
5
video.c
@ -3068,8 +3068,9 @@ static void CuvidDisplayFrame(void)
|
||||
CuvidDecoder *decoder;
|
||||
|
||||
|
||||
glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext);
|
||||
CuvidDecoders[0]->Frameproc = (float)(GetusTicks()-last_time)/1000000.0;
|
||||
glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext);
|
||||
if (CuvidDecoderN)
|
||||
CuvidDecoders[0]->Frameproc = (float)(GetusTicks()-last_time)/1000000.0;
|
||||
// printf("Time used %2.2f\n",CuvidDecoders[0]->Frameproc);
|
||||
glXWaitVideoSyncSGI (2, (Count + 1) % 2, &Count); // wait for previous frame to swap
|
||||
last_time = GetusTicks();
|
||||
|
Loading…
Reference in New Issue
Block a user