0018-vout-iOS-don-t-draw-if-the-app-is-not-active.patch 938 B

123456789101112131415161718192021222324252627282930313233343536
  1. From f57d23b3edd828b5cd180bbf1b85e038dca9508d Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <felix@serioese.gmbh>
  3. Date: Wed, 6 Sep 2017 17:38:35 +0200
  4. Subject: [PATCH 18/19] vout iOS: don't draw if the app is not active
  5. ---
  6. modules/video_output/ios.m | 5 ++++-
  7. 1 file changed, 4 insertions(+), 1 deletion(-)
  8. diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
  9. index a22d281b4d..9e59212a1e 100644
  10. --- a/modules/video_output/ios.m
  11. +++ b/modules/video_output/ios.m
  12. @@ -529,7 +529,6 @@ static void OpenglESSwap(vlc_gl_t *gl)
  13. - (void)dealloc
  14. {
  15. -
  16. [[NSNotificationCenter defaultCenter] removeObserver:self];
  17. [_eaglContext release];
  18. [super dealloc];
  19. @@ -551,6 +550,10 @@ static void OpenglESSwap(vlc_gl_t *gl)
  20. return;
  21. }
  22. + if (unlikely(!_appActive)) {
  23. + return;
  24. + }
  25. +
  26. glDisable(GL_DEPTH_TEST);
  27. glGenFramebuffers(1, &_frameBuffer);
  28. --
  29. 2.14.1