[vlc-commits] kva: replace deprecated APIs

KO Myung-Hun git at videolan.org
Wed Jan 2 10:16:10 CET 2019


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Tue Jan  1 02:25:20 2019 +0900| [2bdd370ee604cf0d4148fd56c12b880d7b494289] | committer: Rémi Denis-Courmont

kva: replace deprecated APIs

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

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

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 99636ce611..66404c9aff 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -180,10 +180,9 @@ static void PMThread( void *arg )
 
     sys->b_fixt23 = var_CreateGetBool( vd, "kva-fixt23");
 
-    if( !sys->b_fixt23 )
+    if( !sys->b_fixt23 && vd->cfg->window->type == VOUT_WINDOW_TYPE_HWND )
         /* If an external window was specified, we'll draw in it. */
-        sys->parent_window =
-            vout_display_NewWindow( vd, VOUT_WINDOW_TYPE_HWND );
+        sys->parent_window = vd->cfg->window;
 
     if( sys->parent_window )
     {
@@ -964,7 +963,7 @@ static MRESULT EXPENTRY WndProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 )
     {
         /* the user wants to close the window */
         case WM_CLOSE:
-            vout_display_SendEventClose(vd);
+            vout_window_ReportClose(vd->cfg->window);
             result = 0;
             break;
 
@@ -1067,7 +1066,7 @@ static MRESULT EXPENTRY WndProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 )
                     if( i_flags & KC_ALT )
                         i_key |= KEY_MODIFIER_ALT;
 
-                    vout_display_SendEventKey(vd, i_key);
+                    vout_window_ReportKeyPress(vd->cfg->window, i_key);
                 }
             }
             break;



More information about the vlc-commits mailing list