Make sure the audio player changes to stopped state when it's stopped from paused state

This commit is contained in:
Sergio Padrino 2015-01-14 16:55:25 +01:00
parent 39f0d8bdfe
commit de99ec9d7a
1 changed files with 3 additions and 0 deletions

View File

@ -2412,6 +2412,9 @@ static BOOL GetHardwareCodecClassDesc(UInt32 formatId, AudioClassDescription* cl
}
else if (!isRunning)
{
stopReason = stopReasonIn;
self.internalState = STKAudioPlayerInternalStateStopped;
return;
}