[vlc-commits] vout_ios: use a broader background definition (refs #9431)

Felix Paul Kühne git at videolan.org
Sun Sep 29 15:21:32 CEST 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Sep 26 16:48:14 2013 +0200| [b50305f3f3b4506e6b7d0dec3eefc4cc43fb0a4a] | committer: Felix Paul Kühne

vout_ios: use a broader background definition (refs #9431)

(cherry picked from commit e4acf92468a486760ad8e4cf359602df858181d3)

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

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

diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 66002dc..d963201 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -485,7 +485,7 @@ static void OpenglESSwap(vlc_gl_t *gl)
 
 - (void)applicationStateChanged:(NSNotification *)notification
 {
-    if ([[notification name] isEqualToString: UIApplicationWillResignActiveNotification])
+    if ([[notification name] isEqualToString:UIApplicationWillResignActiveNotification] || [[o_notification name] isEqualToString:UIApplicationDidEnterBackgroundNotification] || [[o_notification name] isEqualToString:UIApplicationWillTerminateNotification])
         _appActive = NO;
     else
         _appActive = YES;



More information about the vlc-commits mailing list