Skip to content

Commit

Permalink
Return progress while stopping.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gallagher committed Sep 3, 2012
1 parent 16018f4 commit 0e6be8b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Classes/AudioStreamer.m
Expand Up @@ -1020,12 +1020,12 @@ - (double)progress
{
@synchronized(self)
{
if (sampleRate > 0 && ![self isFinishing])
{
if (state != AS_PLAYING && state != AS_PAUSED && state != AS_BUFFERING)
{
return lastProgress;
}
if (sampleRate > 0 && (state == AS_STOPPING || ![self isFinishing]))
{
if (state != AS_PLAYING && state != AS_PAUSED && state != AS_BUFFERING && state != AS_STOPPING)
{
return lastProgress;
}

AudioTimeStamp queueTime;
Boolean discontinuity;
Expand Down

0 comments on commit 0e6be8b

Please sign in to comment.