diff options
Diffstat (limited to 'waltham-transmitter')
-rw-r--r-- | waltham-transmitter/transmitter-plugin/output.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/waltham-transmitter/transmitter-plugin/output.c b/waltham-transmitter/transmitter-plugin/output.c index c379ce5..b98e170 100644 --- a/waltham-transmitter/transmitter-plugin/output.c +++ b/waltham-transmitter/transmitter-plugin/output.c @@ -255,15 +255,20 @@ transmitter_assign_planes(struct weston_output *base) { } } -static void +static int transmitter_output_enable(struct weston_output *base) { struct weston_transmitter_output *output = wl_container_of(base, output, base); - + if (!output) { + weston_log("No weston output found\n"); + return -1; + } output->base.assign_planes = transmitter_assign_planes; output->base.set_backlight = NULL; output->base.set_dpms = NULL; output->base.switch_mode = NULL; + + return 0; } int |