Commit df8f9847 authored by Tobias's avatar Tobias Committed by Felix Paul Kühne
Browse files

don't wait in background for UI updates to finish

parent 04e28da1
......@@ -115,7 +115,7 @@
{
UIImage *image = [VLCThumbnailsCache thumbnailForManagedObject:file toFitRect:CGRectMake(0., 0., _screenBounds.size.width * _screenScale, _screenBounds.size.height * _screenScale) shouldReplaceCache:NO];
[self.playElementsGroup performSelectorOnMainThread:@selector(setBackgroundImage:) withObject:image waitUntilDone:YES];
[self.playElementsGroup performSelectorOnMainThread:@selector(setBackgroundImage:) withObject:image waitUntilDone:NO];
}
- (IBAction)playPausePressed {
......
......@@ -218,7 +218,7 @@ typedef enum {
UIGraphicsEndImageContext();
[array.firstObject performSelectorOnMainThread:@selector(setBackgroundImage:) withObject:newImage waitUntilDone:YES];
[array.firstObject performSelectorOnMainThread:@selector(setBackgroundImage:) withObject:newImage waitUntilDone:NO];
}
//TODO: this code could use refactoring to be more readable
......
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