[vlc-commits] directdraw: accept every projection modes

Thomas Guillem git at videolan.org
Wed Apr 18 13:58:55 CEST 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Apr 18 13:57:32 2018 +0200| [a9d8bd41b288e9bc1c27171ebd43831bdbef5bed] | committer: Thomas Guillem

directdraw: accept every projection modes

Since this is the last vout in priority (comes after OpenGL), this vout should
accept ever projection modes (even if it won't be displayed correctly).

(cherry picked from commit bdb1cdc0c93a79cca52fb72f67e625ae47502bbb)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a9d8bd41b288e9bc1c27171ebd43831bdbef5bed
---

 modules/video_output/win32/directdraw.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/video_output/win32/directdraw.c b/modules/video_output/win32/directdraw.c
index 13995577da..be583127f9 100644
--- a/modules/video_output/win32/directdraw.c
+++ b/modules/video_output/win32/directdraw.c
@@ -199,9 +199,6 @@ 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)



More information about the vlc-commits mailing list