Commit 86211134 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

video_output: ignore vouts that can't handle 360 video unless forced

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6b90f63d
......@@ -228,6 +228,9 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
if ( !vd->obj.force && vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
return VLC_EGENERIC; /* let a module who can handle it do it */
OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if(GetVersionEx(&winVer) && winVer.dwMajorVersion < 6 && !object->obj.force)
......
......@@ -199,6 +199,9 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
if ( !vd->obj.force && vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
return VLC_EGENERIC; /* let a module who can handle it do it */
/* Allocate structure */
vd->sys = sys = calloc(1, sizeof(*sys));
if (!sys)
......
......@@ -91,6 +91,9 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
if ( !vd->obj.force && vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
return VLC_EGENERIC; /* let a module who can handle it do it */
vd->sys = sys = calloc(1, sizeof(*sys));
if (!sys)
return VLC_ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment