[vlc-commits] vout iOS: don't draw if the app is not active

Felix Paul Kühne git at videolan.org
Thu Sep 7 20:04:31 CEST 2017


vlc | branch: master | Felix Paul Kühne <felix at serioese.gmbh> | Wed Sep  6 17:38:35 2017 +0200| [67f11ef902a380040d867a2b15e0f739ecf88752] | committer: Felix Paul Kühne

vout iOS: don't draw if the app is not active

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

 modules/video_output/ios.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index a22d281b4d..9e59212a1e 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -529,7 +529,6 @@ static void OpenglESSwap(vlc_gl_t *gl)
 
 - (void)dealloc
 {
-
     [[NSNotificationCenter defaultCenter] removeObserver:self];
     [_eaglContext release];
     [super dealloc];
@@ -551,6 +550,10 @@ static void OpenglESSwap(vlc_gl_t *gl)
         return;
     }
 
+    if (unlikely(!_appActive)) {
+        return;
+    }
+
     glDisable(GL_DEPTH_TEST);
 
     glGenFramebuffers(1, &_frameBuffer);



More information about the vlc-commits mailing list