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;
|
||||
render->fd_drm = open("/dev/dri/card0", O_RDWR);
|
||||
if (render->fd_drm < 0) {
|
||||
fprintf(stderr, "FindDevice: cannot open /dev/dri/card0: %m\n");
|
||||
return -errno;
|
||||
render->fd_drm = open("/dev/dri/card1", O_RDWR);
|
||||
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);
|
||||
|
@@ -61,7 +61,7 @@ extern void ToggleLUT();
|
||||
/// vdr-plugin version number.
|
||||
/// Makefile extracts the version number for generating the file name
|
||||
/// for the distribution archive.
|
||||
static const char *const VERSION = "3.20"
|
||||
static const char *const VERSION = "3.22"
|
||||
#ifdef GIT_REV
|
||||
"-GIT" GIT_REV
|
||||
#endif
|
||||
|
12
video.c
12
video.c
@@ -1258,17 +1258,19 @@ static void EglExit(void) {
|
||||
EglCheck();
|
||||
eglSurface = NULL;
|
||||
}
|
||||
|
||||
if (eglContext) {
|
||||
eglDestroyContext(eglDisplay, eglContext);
|
||||
EglCheck();
|
||||
eglContext = NULL;
|
||||
}
|
||||
if (eglSharedContext) {
|
||||
eglDestroyContext(eglDisplay, eglSharedContext);
|
||||
EglCheck();
|
||||
eglSharedContext = NULL;
|
||||
}
|
||||
|
||||
if (eglContext) {
|
||||
eglDestroyContext(eglDisplay, eglContext);
|
||||
EglCheck();
|
||||
eglContext = NULL;
|
||||
}
|
||||
|
||||
eglTerminate(eglDisplay);
|
||||
eglDisplay = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user