Browse Source

Fix playlist entry to return 0 length instead of NaN when metadata hasn't loaded yet.

master
parent
commit
f01cfdb4fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Playlist/PlaylistEntry.m

+ 1
- 1
Playlist/PlaylistEntry.m View File

@@ -287,7 +287,7 @@
@dynamic length;
- (NSNumber *)length
{
return [NSNumber numberWithDouble:((double)self.totalFrames / self.sampleRate)];
return [NSNumber numberWithDouble:(self.metadataLoaded)?((double)self.totalFrames / self.sampleRate):0.0];
}

@dynamic path;


Loading…
Cancel
Save