summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/cocoa_common.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index a9600dd518..fd941b8f80 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -783,11 +783,13 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg)
*(double *)arg = vo->cocoa->screen_fps;
return VO_TRUE;
}
+ break;
case VOCTRL_GET_AMBIENT_LUX:
if (vo->cocoa->light_sensor != IO_OBJECT_NULL) {
*(int *)arg = vo->cocoa->last_lux;
return VO_TRUE;
}
+ break;
}
return VO_NOTIMPL;
}