Sfoglia il codice sorgente

playback: fix re-entrant playback from URL

Felix Paul Kühne 11 anni fa
parent
commit
5b6d42c8be
1 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 5 6
      Sources/VLCMovieViewController.m

+ 5 - 6
Sources/VLCMovieViewController.m

@@ -105,12 +105,11 @@
 
 - (void)setUrl:(NSURL *)url
 {
-    if (_url != url) {
-        [self _stopPlayback];
-        _url = url;
-        if (_viewAppeared)
-            [self _startPlayback];
-    }
+    [self _stopPlayback];
+    _url = url;
+    _playerIsSetup = NO;
+    if (_viewAppeared)
+        [self _startPlayback];
 }
 
 - (void)viewDidLoad