mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
More OpenGL and DRM fixes
This commit is contained in:
parent
fe3681f6eb
commit
dfe70f4f96
6
hdr.c
6
hdr.c
@ -370,7 +370,7 @@ static void set_hdr_metadata(int color,int trc, AVFrameSideData *sd1, AVFrameSid
|
||||
if (md)
|
||||
memcpy(&md_save,md,sizeof(md_save));
|
||||
|
||||
printf("Update HDR to TRC %d color %d\n",trc,color);
|
||||
Debug(3,"Update HDR to TRC %d color %d\n",trc,color);
|
||||
|
||||
if (trc == AVCOL_TRC_BT2020_10)
|
||||
trc = AVCOL_TRC_ARIB_STD_B67;
|
||||
@ -471,6 +471,7 @@ static void set_hdr_metadata(int color,int trc, AVFrameSideData *sd1, AVFrameSid
|
||||
ret = drmModeCreatePropertyBlob(render->fd_drm, &data, sizeof(data), &blob_id);
|
||||
if (ret) {
|
||||
printf("DRM: HDR metadata: failed blob create \n");
|
||||
blob_id = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -481,11 +482,12 @@ static void set_hdr_metadata(int color,int trc, AVFrameSideData *sd1, AVFrameSid
|
||||
|
||||
if (blob_id)
|
||||
drmModeDestroyPropertyBlob(render->fd_drm, blob_id);
|
||||
blob_id = 0;
|
||||
return;
|
||||
}
|
||||
m_need_modeset = 1;
|
||||
|
||||
printf("DRM: HDR metadata: prop set\n");
|
||||
Debug(3,"DRM: HDR metadata: prop set\n");
|
||||
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ const char *glversion = "#version 330 core ";
|
||||
#ifdef RASPI
|
||||
const char *glversion = "#version 300 es";
|
||||
#else
|
||||
const char *glversion = "#version 320 es ";
|
||||
const char *glversion = "#version 300 es ";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -6,7 +6,7 @@ const char *gl_version = "#version 330";
|
||||
#ifdef RASPI
|
||||
const char *gl_version = "#version 300 es";
|
||||
#else
|
||||
const char *gl_version = "#version 320 es ";
|
||||
const char *gl_version = "#version 300 es ";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
8
video.c
8
video.c
@ -5261,6 +5261,9 @@ static void *VideoHandlerThread(void *dummy)
|
||||
}
|
||||
#ifdef PLACEBO
|
||||
pthread_cleanup_pop(NULL);
|
||||
#endif
|
||||
#ifdef USE_DRM
|
||||
drm_clean_up();
|
||||
#endif
|
||||
return dummy;
|
||||
}
|
||||
@ -6693,6 +6696,7 @@ void VideoInit(const char *display_name)
|
||||
///
|
||||
void VideoExit(void)
|
||||
{
|
||||
Debug(3,"Video Exit\n");
|
||||
#ifndef USE_DRM
|
||||
if (!XlibDisplay) { // no init or failed
|
||||
return;
|
||||
@ -6749,9 +6753,7 @@ void VideoExit(void)
|
||||
Connection = 0;
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_DRM
|
||||
drm_clean_up();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#ifdef USE_DRM
|
||||
|
Loading…
Reference in New Issue
Block a user