[vlc-commits] vout/android: display: reset window layout to 0 on close

Thomas Guillem git at videolan.org
Tue Dec 20 18:08:03 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec 20 16:10:24 2016 +0100| [032ce549a9f507c2452858012b53e9975c073b48] | committer: Thomas Guillem

vout/android: display: reset window layout to 0 on close

This fixes a wrong video layout when switching from android-display to gles2
using the same window.

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

 modules/video_output/android/display.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/video_output/android/display.c b/modules/video_output/android/display.c
index 766d7f6..89bcc94 100644
--- a/modules/video_output/android/display.c
+++ b/modules/video_output/android/display.c
@@ -803,7 +803,10 @@ static void Close(vlc_object_t *p_this)
         AndroidWindow_Destroy(vd, sys->p_sub_window);
 
     if (sys->embed)
+    {
+        AWindowHandler_setWindowLayout(sys->p_awh, 0, 0, 0, 0, 0, 0);
         vout_display_DeleteWindow(vd, sys->embed);
+    }
 
     free(sys);
 }



More information about the vlc-commits mailing list