[vlc-commits] kva: support ZOOM

KO Myung-Hun git at videolan.org
Mon Apr 7 19:45:40 CEST 2014


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sun Apr  6 11:53:26 2014 +0000| [2eada01e3db17b930bc27c57c4aa8987e4400a4e] | committer: Jean-Baptiste Kempf

kva: support ZOOM

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/kva.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index d9aee64..b90f431 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -479,9 +479,11 @@ static int Control( vout_display_t *vd, int query, va_list args )
     }
 
     case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
+    case VOUT_DISPLAY_CHANGE_ZOOM:
     {
         const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *);
-        bool  is_forced = va_arg(args, int);
+        bool  is_forced = query == VOUT_DISPLAY_CHANGE_ZOOM ||
+                          va_arg(args, int);
 
         if( is_forced )
         {
@@ -532,7 +534,6 @@ static int Control( vout_display_t *vd, int query, va_list args )
 
     case VOUT_DISPLAY_RESET_PICTURES:
     case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
-    case VOUT_DISPLAY_CHANGE_ZOOM:
     case VOUT_DISPLAY_GET_OPENGL:
         /* TODO */
         break;



More information about the vlc-commits mailing list