summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drm_fb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drm_fb.c b/src/drm_fb.c
index 0b6e053..a3864d3 100644
--- a/src/drm_fb.c
+++ b/src/drm_fb.c
@@ -159,6 +159,9 @@ static int connector_desc_generator(const til_settings_t *settings, til_setup_t
if (r < 0)
return r;
+ if (!connectors[0])
+ return -ENOENT;
+
r = til_setting_desc_new( settings,
&(til_setting_spec_t){
.name = "DRM connector",
@@ -269,6 +272,9 @@ static int mode_desc_generator(const til_settings_t *settings, til_setup_t *setu
if (r < 0)
return r;
+ if (!modes[0])
+ return -ENOENT;
+
r = til_setting_desc_new( settings,
&(til_setting_spec_t){
.name = "DRM video mode",
© All Rights Reserved