mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-03-01 10:39:28 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
20f1bd45e6 | ||
|
7a7e09ff7a | ||
|
c4a660ede2 | ||
|
8e495266e2 |
7
drm.c
7
drm.c
@@ -209,8 +209,11 @@ static int FindDevice(VideoRender *render) {
|
|||||||
int found = 0;
|
int found = 0;
|
||||||
render->fd_drm = open("/dev/dri/card0", O_RDWR);
|
render->fd_drm = open("/dev/dri/card0", O_RDWR);
|
||||||
if (render->fd_drm < 0) {
|
if (render->fd_drm < 0) {
|
||||||
fprintf(stderr, "FindDevice: cannot open /dev/dri/card0: %m\n");
|
render->fd_drm = open("/dev/dri/card1", O_RDWR);
|
||||||
return -errno;
|
if (render->fd_drm < 0) {
|
||||||
|
fprintf(stderr, "FindDevice: cannot open /dev/dri/card0 or card1: %m\n");
|
||||||
|
return -errno;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ret = drmSetMaster(render->fd_drm);
|
int ret = drmSetMaster(render->fd_drm);
|
||||||
|
@@ -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.20"
|
static const char *const VERSION = "3.22"
|
||||||
#ifdef GIT_REV
|
#ifdef GIT_REV
|
||||||
"-GIT" GIT_REV
|
"-GIT" GIT_REV
|
||||||
#endif
|
#endif
|
||||||
|
12
video.c
12
video.c
@@ -1258,17 +1258,19 @@ static void EglExit(void) {
|
|||||||
EglCheck();
|
EglCheck();
|
||||||
eglSurface = NULL;
|
eglSurface = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (eglContext) {
|
||||||
|
eglDestroyContext(eglDisplay, eglContext);
|
||||||
|
EglCheck();
|
||||||
|
eglContext = NULL;
|
||||||
|
}
|
||||||
if (eglSharedContext) {
|
if (eglSharedContext) {
|
||||||
eglDestroyContext(eglDisplay, eglSharedContext);
|
eglDestroyContext(eglDisplay, eglSharedContext);
|
||||||
EglCheck();
|
EglCheck();
|
||||||
eglSharedContext = NULL;
|
eglSharedContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eglContext) {
|
|
||||||
eglDestroyContext(eglDisplay, eglContext);
|
|
||||||
EglCheck();
|
|
||||||
eglContext = NULL;
|
|
||||||
}
|
|
||||||
eglTerminate(eglDisplay);
|
eglTerminate(eglDisplay);
|
||||||
eglDisplay = NULL;
|
eglDisplay = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user