[vlc-devel] [PATCH] kva: support ZOOM

KO Myung-Hun komh78 at gmail.com
Sun Apr 6 05:02:07 CEST 2014


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

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 801ef7d..3bc58c6 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -495,9 +495,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 = va_arg(args, int) ||
+                          query == VOUT_DISPLAY_CHANGE_ZOOM;
 
         if( is_forced )
         {
@@ -548,7 +550,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;
-- 
1.7.3.2




More information about the vlc-devel mailing list