[vlc-commits] ios2: clean opengl buffers only in active state

Gleb Pinigin git at videolan.org
Sat Aug 24 19:09:04 CEST 2013


vlc/vlc-2.1 | branch: master | Gleb Pinigin <gpinigin at gmail.com> | Sat Aug 24 22:10:08 2013 +0700| [0d987c72d8baa362d20ea3b98acfae01bc19681f] | committer: Felix Paul Kühne

ios2: clean opengl buffers only in active state

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
(cherry picked from commit 398d9abf74155ea6ad87fd75ed531b6239db2d93)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=0d987c72d8baa362d20ea3b98acfae01bc19681f
---

 modules/video_output/ios2.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 397be6d..66002dc 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -339,7 +339,8 @@ static picture_pool_t *PicturePool(vout_display_t *vd, unsigned requested_count)
 static int OpenglESClean(vlc_gl_t *gl)
 {
     vout_display_sys_t *sys = (vout_display_sys_t *)gl->sys;
-    [sys->glESView resetBuffers];
+    if (likely([sys->glESView isAppActive]))
+        [sys->glESView resetBuffers];
     return 0;
 }
 



More information about the vlc-commits mailing list