vo_wayland: fix warning -Wvoid-pointer-to-enum-cast

This commit is contained in:
Thomas Weißschuh 2023-02-25 04:53:42 +00:00 committed by sfan5
parent 5a83745316
commit b4ae1551e4
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;