[vlc-commits] directdraw: accept every projection modes

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


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Apr 18 13:57:32 2018 +0200| [bdb1cdc0c93a79cca52fb72f67e625ae47502bbb] | 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).

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

 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 689a9cebcc..142ee0588b 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