Set player rate on main thread

This commit is contained in:
Baris Sencan 2015-06-26 15:12:33 -07:00
parent bcecb6ed81
commit c985957dd5

View File

@ -375,7 +375,9 @@ static NSString *const statusKeyPath = @"status";
[self setResizeMode:_resizeMode];
[self setRepeat:_repeat];
[self setPaused:_paused];
[_player setRate:_rate];
dispatch_async(dispatch_get_main_queue(), ^{
[_player setRate:_rate];
});
}
- (void)setRepeat:(BOOL)repeat {