From e689fee7cd1d15245403248b69dab46f0ae34c2f Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Mon, 22 Sep 2025 23:20:34 +0200 Subject: [PATCH] libvlc: silence different enums comparison warning Avoids the following warning: comparison of different enumeration types ('enum libvlc_video_stereo_mode_t' and 'enum vlc_stereoscopic_mode_t') --- lib/video.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/video.c b/lib/video.c index 8a8c6a9554..8bde876641 100644 --- a/lib/video.c +++ b/lib/video.c @@ -310,11 +310,11 @@ int libvlc_video_update_viewpoint( libvlc_media_player_t *p_mi, libvlc_video_stereo_mode_t libvlc_video_get_video_stereo_mode(libvlc_media_player_t *p_mi) { - static_assert( libvlc_VideoStereoAuto == VIDEO_STEREO_OUTPUT_AUTO && - libvlc_VideoStereoStereo == VIDEO_STEREO_OUTPUT_STEREO && - libvlc_VideoStereoLeftEye == VIDEO_STEREO_OUTPUT_LEFT_ONLY && - libvlc_VideoStereoRightEye == VIDEO_STEREO_OUTPUT_RIGHT_ONLY && - libvlc_VideoStereoSideBySide == VIDEO_STEREO_OUTPUT_SIDE_BY_SIDE, + static_assert( libvlc_VideoStereoAuto == (int)VIDEO_STEREO_OUTPUT_AUTO && + libvlc_VideoStereoStereo == (int)VIDEO_STEREO_OUTPUT_STEREO && + libvlc_VideoStereoLeftEye == (int)VIDEO_STEREO_OUTPUT_LEFT_ONLY && + libvlc_VideoStereoRightEye == (int)VIDEO_STEREO_OUTPUT_RIGHT_ONLY && + libvlc_VideoStereoSideBySide == (int)VIDEO_STEREO_OUTPUT_SIDE_BY_SIDE, "stereo mode mismatch" ); return var_GetInteger(p_mi, "video-stereo-mode");