diff --git a/Audio/Output/OutputAVFoundation.m b/Audio/Output/OutputAVFoundation.m index 9949fc37f..bf8c9a45f 100644 --- a/Audio/Output/OutputAVFoundation.m +++ b/Audio/Output/OutputAVFoundation.m @@ -1126,7 +1126,10 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons } - (void)removeSynchronizerBlock { - [renderSynchronizer removeTimeObserver:currentPtsObserver]; + if(renderSynchronizer && currentPtsObserver) { + [renderSynchronizer removeTimeObserver:currentPtsObserver]; + currentPtsObserver = nil; + } } - (void)setVolume:(double)v {