summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-11 21:05:34 +0200
committerwm4 <wm4@nowhere>2015-05-11 22:56:18 +0200
commit10149f68a5c6cb9783ed7595998985d7e586e871 (patch)
tree884d23115e8e8d8e3570dfa190ed9100094e666b /video
parenta7ecb11dddcecca503a4804a77cc7c3a4876a6fb (diff)
downloadmpv-10149f68a5c6cb9783ed7595998985d7e586e871.tar.bz2
mpv-10149f68a5c6cb9783ed7595998985d7e586e871.tar.xz
cocoa: add missing break statements in switch
The first one (for VOCTRL_GET_DISPLAY_FPS) could have led to undefined behavior if the FPS was unknown. The second is for general symmetry.
Diffstat (limited to 'video')
-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 14d1458994..7a0e6429de 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -782,11 +782,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;
}