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 @@
- (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
......
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