Browse Source

web socket: fix invalid VC recycling

(cherry picked from commit a5ae5bae67a008dc0546ec82d379f4e52b886614)
Felix Paul Kühne 9 years ago
parent
commit
72f2c7f135
1 changed files with 1 additions and 5 deletions
  1. 1 5
      SharedSources/VLCPlayerControlWebSocket.m

+ 1 - 5
SharedSources/VLCPlayerControlWebSocket.m

@@ -356,14 +356,10 @@
     [ubiquitousKeyValueStore setArray:recentURLs forKey:kVLCRecentURLs];
 
     [mediaList addMedia:[VLCMedia mediaWithURL:[NSURL URLWithString:urlString]]];
-
     if (needsMediaList) {
         [vpc playMediaList:mediaList firstIndex:0];
-    }
-
-    VLCFullscreenMovieTVViewController *movieVC = [VLCFullscreenMovieTVViewController fullscreenMovieTVViewController];
 
-    if (![movieVC isBeingPresented]) {
+        VLCFullscreenMovieTVViewController *movieVC = [VLCFullscreenMovieTVViewController fullscreenMovieTVViewController];
         if ([[[UIApplication sharedApplication].delegate.window rootViewController] presentedViewController] != nil) {
             [[[[UIApplication sharedApplication].delegate.window rootViewController] presentedViewController] presentViewController:movieVC
                                                                                                                            animated:NO