Tempo changes should not call willChangeSong

This commit is contained in:
Matthias Neeracher 2008-08-15 13:24:48 +00:00
parent e9f1ca4f9b
commit de5bd8e4a5

View File

@ -272,12 +272,10 @@
if (tempo == [songTempo intValue]) if (tempo == [songTempo intValue])
return; return;
[self willChangeSong];
[songTempo autorelease]; [songTempo autorelease];
songTempo = [[NSNumber numberWithInt:tempo] retain]; songTempo = [[NSNumber numberWithInt:tempo] retain];
if (VLSoundOut::Instance()->Playing()) if (VLSoundOut::Instance()->Playing())
VLSoundOut::Instance()->SetPlayRate(playRate*tempo/baseTempo); VLSoundOut::Instance()->SetPlayRate(playRate*tempo/baseTempo);
[self didChangeSong];
} }
- (void) setGroove:(NSString *)groove inSections:(NSRange)sections - (void) setGroove:(NSString *)groove inSections:(NSRange)sections