summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/misc.c2
-rw-r--r--video/out/wayland_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/player/misc.c b/player/misc.c
index cc2eaeee96..b91d52a607 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -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)
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 2fe454e050..efa00075f9 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -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;