Permalink
Browse files

Return progress while stopping.

  • Loading branch information...
1 parent 16018f4 commit 0e6be8b63bad0f581d186db338bb6ab3dcb6b8e8 Matt Gallagher committed Sep 3, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 Classes/AudioStreamer.m
View
@@ -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;

0 comments on commit 0e6be8b

Please sign in to comment.