mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00:00
vo_wayland: fix warning -Wvoid-pointer-to-enum-cast
This commit is contained in:
parent
5a83745316
commit
b4ae1551e4
@ -179,7 +179,7 @@ void update_content_type(struct MPContext *mpctx, struct track *track)
|
||||
content_type = MP_CONTENT_VIDEO;
|
||||
}
|
||||
if (mpctx->video_out)
|
||||
vo_control(mpctx->video_out, VOCTRL_CONTENT_TYPE, (void *)content_type);
|
||||
vo_control(mpctx->video_out, VOCTRL_CONTENT_TYPE, &content_type);
|
||||
}
|
||||
|
||||
void update_vo_playback_state(struct MPContext *mpctx)
|
||||
|
@ -1964,7 +1964,7 @@ int vo_wayland_control(struct vo *vo, int *events, int request, void *arg)
|
||||
}
|
||||
case VOCTRL_CONTENT_TYPE: {
|
||||
#if HAVE_WAYLAND_PROTOCOLS_1_27
|
||||
wl->current_content_type = (enum mp_content_type)arg;
|
||||
wl->current_content_type = *(enum mp_content_type *)arg;
|
||||
set_content_type(wl);
|
||||
#endif
|
||||
return VO_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user