diff --git a/Audio/AudioPlayer.m b/Audio/AudioPlayer.m index 98077054e..5311815c0 100644 --- a/Audio/AudioPlayer.m +++ b/Audio/AudioPlayer.m @@ -57,7 +57,9 @@ } - (void)playBG:(NSURL *)url withUserInfo:(id)userInfo withRGInfo:(NSDictionary *)rgi startPaused:(NSNumber *)paused andSeekTo:(NSNumber *)time { - [self play:url withUserInfo:userInfo withRGInfo:rgi startPaused:[paused boolValue] andSeekTo:[time doubleValue]]; + @synchronized (self) { + [self play:url withUserInfo:userInfo withRGInfo:rgi startPaused:[paused boolValue] andSeekTo:[time doubleValue]]; + } } - (void)play:(NSURL *)url withUserInfo:(id)userInfo withRGInfo:(NSDictionary *)rgi startPaused:(BOOL)paused andSeekTo:(double)time {