Browse Source

playback: fix re-entrant playback from URL

Felix Paul Kühne 11 years ago
parent
commit
5b6d42c8be
1 changed files with 5 additions and 6 deletions
  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