mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
a7ecb11ddd
commit
10149f68a5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue