Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Return progress while stopping.

  • Loading branch information...
commit 0e6be8b63bad0f581d186db338bb6ab3dcb6b8e8 1 parent 16018f4
Matt Gallagher authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 Classes/AudioStreamer.m
View
12 Classes/AudioStreamer.m
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.