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 setResizeMode:_resizeMode];
[self setRepeat:_repeat]; [self setRepeat:_repeat];
[self setPaused:_paused]; [self setPaused:_paused];
dispatch_async(dispatch_get_main_queue(), ^{
[_player setRate:_rate]; [_player setRate:_rate];
});
} }
- (void)setRepeat:(BOOL)repeat { - (void)setRepeat:(BOOL)repeat {