Commit 9ff95208 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Revert "vpc: always start and stop playback on the mainthread since setters...

Revert "vpc: always start and stop playback on the mainthread since setters may come from the background"

This reverts commit 62628f80.
parent 45557f60
......@@ -149,10 +149,10 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
if (self.activePlaybackSession) {
self.sessionWillRestart = YES;
[self performSelectorOnMainThread:@selector(stopPlayback) withObject:nil waitUntilDone:NO];
[self stopPlayback];
} else {
self.sessionWillRestart = NO;
[self performSelectorOnMainThread:@selector(startPlayback) withObject:nil waitUntilDone:NO];
[self startPlayback];
}
}
......@@ -164,10 +164,10 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
if (self.activePlaybackSession) {
self.sessionWillRestart = YES;
[self performSelectorOnMainThread:@selector(stopPlayback) withObject:nil waitUntilDone:NO];
[self stopPlayback];
} else {
self.sessionWillRestart = NO;
[self performSelectorOnMainThread:@selector(startPlayback) withObject:nil waitUntilDone:NO];
[self startPlayback];
}
}
......@@ -178,10 +178,10 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
if (self.activePlaybackSession) {
self.sessionWillRestart = YES;
[self performSelectorOnMainThread:@selector(stopPlayback) withObject:nil waitUntilDone:NO];
[self stopPlayback];
} else {
self.sessionWillRestart = NO;
[self performSelectorOnMainThread:@selector(startPlayback) withObject:nil waitUntilDone:NO];
[self startPlayback];
}
}
......@@ -356,7 +356,7 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
[[NSNotificationCenter defaultCenter] postNotificationName:VLCPlaybackControllerPlaybackDidStop object:self];
} else {
self.sessionWillRestart = NO;
[self performSelectorOnMainThread:@selector(startPlayback) withObject:nil waitUntilDone:NO];
[self startPlayback];
}
}
......@@ -753,14 +753,14 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
- (void)setUrl:(NSURL *)url
{
[self performSelectorOnMainThread:@selector(stopPlayback) withObject:nil waitUntilDone:NO];
[self stopPlayback];
_url = url;
_playerIsSetup = NO;
}
- (void)setMediaList:(VLCMediaList *)mediaList
{
[self performSelectorOnMainThread:@selector(stopPlayback) withObject:nil waitUntilDone:NO];
[self stopPlayback];
_mediaList = mediaList;
_playerIsSetup = NO;
}
......
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