1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Use first Connector with EDID Data for drm output.

This commit is contained in:
jojo61 2023-07-14 10:41:41 +02:00
parent e2e9ae94d7
commit 45c86f12dd

3
drm.c
View File

@ -280,7 +280,7 @@ static int FindDevice(VideoRender *render) {
if (DRMConnector && strcmp(DRMConnector, connectorstr)) if (DRMConnector && strcmp(DRMConnector, connectorstr))
continue; continue;
if (connector->connection == DRM_MODE_CONNECTED && connector->count_modes > 0) { if (/*connector->connection == DRM_MODE_CONNECTED && */ connector->count_modes > 0) {
float aspect = (float)connector->mmWidth / (float)connector->mmHeight; float aspect = (float)connector->mmWidth / (float)connector->mmHeight;
if ((aspect > 1.70) && (aspect < 1.85)) { if ((aspect > 1.70) && (aspect < 1.85)) {
render->mmHeight = 90; render->mmHeight = 90;
@ -492,6 +492,7 @@ static void drm_swap_buffers() {
uint32_t fb; uint32_t fb;
eglSwapBuffers(eglDisplay, eglSurface); eglSwapBuffers(eglDisplay, eglSurface);
usleep(1000);
struct gbm_bo *bo = gbm_surface_lock_front_buffer(gbm.surface); struct gbm_bo *bo = gbm_surface_lock_front_buffer(gbm.surface);
#if 1 #if 1
if (bo == NULL) if (bo == NULL)