Commit 5b6d42c8 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

playback: fix re-entrant playback from URL

parent b2ad4df7
...@@ -105,12 +105,11 @@ ...@@ -105,12 +105,11 @@
- (void)setUrl:(NSURL *)url - (void)setUrl:(NSURL *)url
{ {
if (_url != url) { [self _stopPlayback];
[self _stopPlayback]; _url = url;
_url = url; _playerIsSetup = NO;
if (_viewAppeared) if (_viewAppeared)
[self _startPlayback]; [self _startPlayback];
}
} }
- (void)viewDidLoad - (void)viewDidLoad
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment