diff options
author | wm4 <wm4@nowhere> | 2015-05-11 21:05:34 +0200 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-05-15 10:29:40 +0900 |
commit | a7e35fadb11b180ec77cc1de1fdbe4ca3188761e (patch) | |
tree | b2ec78c470eacc23d945ebcccf015b539d0f2da8 /video | |
parent | b9a6e18720e1f4ac5f17bd7062656e58c1ca45e7 (diff) | |
download | mpv-a7e35fadb11b180ec77cc1de1fdbe4ca3188761e.tar.bz2 mpv-a7e35fadb11b180ec77cc1de1fdbe4ca3188761e.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.
(cherry picked from commit 10149f68a5c6cb9783ed7595998985d7e586e871)
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa_common.m | 2 |
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; } |