mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 06:20:43 +09:00
Make amd/intel nvidia/wayland capture display match x11 connector name, allow screen capture on amd/intel nvidia/wayland (select the first output for now)
This commit is contained in:
10
src/utils.c
10
src/utils.c
@@ -137,17 +137,17 @@ static void for_each_active_monitor_output_drm(const char *drm_card_path, active
|
||||
if(!connector)
|
||||
continue;
|
||||
|
||||
if(connector->connection != DRM_MODE_CONNECTED) {
|
||||
drmModeFreeConnector(connector);
|
||||
continue;
|
||||
}
|
||||
|
||||
drm_connector_type_count *connector_type = drm_connector_types_get_index(type_counts, &num_type_counts, connector->connector_type);
|
||||
const char *connection_name = drmModeGetConnectorTypeName(connector->connector_type);
|
||||
const int connection_name_len = strlen(connection_name);
|
||||
if(connector_type)
|
||||
++connector_type->count;
|
||||
|
||||
if(connector->connection != DRM_MODE_CONNECTED) {
|
||||
drmModeFreeConnector(connector);
|
||||
continue;
|
||||
}
|
||||
|
||||
uint64_t crtc_id = 0;
|
||||
connector_get_property_by_name(fd, connector, "CRTC_ID", &crtc_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user