[vlc-commits] [Git][videolan/vlc][master] 2 commits: vout: opengl: set viewpoint failure non fatal
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Dec 22 08:17:38 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
99e3c1c4 by Francois Cartegnie at 2022-12-22T08:05:29+00:00
vout: opengl: set viewpoint failure non fatal
prevents infinite loop
- - - - -
12497780 by Francois Cartegnie at 2022-12-22T08:05:29+00:00
vout: enforce valid viewpoint range
- - - - -
2 changed files:
- modules/video_output/opengl/vout_helper.c
- src/video_output/video_output.c
Changes:
=====================================
modules/video_output/opengl/vout_helper.c
=====================================
@@ -248,7 +248,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
if (fmt->projection_mode != PROJECTION_MODE_RECTANGULAR
&& vout_display_opengl_SetViewpoint(vgl, viewpoint) != VLC_SUCCESS)
- goto delete_sub_renderer;
+ msg_Err(gl, "Could not set viewpoint");
/* Forward to the core the changes to the input format requested by the
* interop */
=====================================
src/video_output/video_output.c
=====================================
@@ -222,6 +222,7 @@ static void VoutFixFormat(video_format_t *dst, const video_format_t *src)
dst->i_chroma = vlc_fourcc_GetCodec(VIDEO_ES, src->i_chroma);
VoutFixFormatAR( dst );
video_format_FixRgb(dst);
+ vlc_viewpoint_clip( &dst->pose );
}
static void VoutRenderWakeUpUrgent(vout_thread_sys_t *sys)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0c923456ebd1970a3b86600256820af099c42260...12497780d6b1d109f5bdfaaa0128a0a2506d0711
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0c923456ebd1970a3b86600256820af099c42260...12497780d6b1d109f5bdfaaa0128a0a2506d0711
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list