Dynamic info now pushes to the correct track
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
455dc0d5c8
commit
6d09b72c1d
4 changed files with 5 additions and 5 deletions
|
@ -761,7 +761,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
|
|||
}
|
||||
|
||||
- (void)audioPlayer:(AudioPlayer *)player pushInfo:(NSDictionary *)info toTrack:(id)userInfo {
|
||||
PlaylistEntry *pe = [playlistController currentEntry];
|
||||
PlaylistEntry *pe = (PlaylistEntry *)userInfo;
|
||||
[pe setMetadata:info];
|
||||
[playlistView refreshCurrentTrack:self];
|
||||
[self sendMetaData];
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
|
||||
- (void)restartPlaybackAtCurrentPosition;
|
||||
|
||||
- (void)pushInfo:(NSDictionary *)info;
|
||||
- (void)pushInfo:(NSDictionary *)info toTrack:(id)userInfo;
|
||||
|
||||
+ (NSArray *)fileTypes;
|
||||
+ (NSArray *)schemes;
|
||||
|
|
|
@ -224,8 +224,8 @@
|
|||
[self sendDelegateMethod:@selector(audioPlayer:restartPlaybackAtCurrentPosition:) withObject:[bufferChain userInfo] waitUntilDone:NO];
|
||||
}
|
||||
|
||||
- (void)pushInfo:(NSDictionary *)info {
|
||||
[self sendDelegateMethod:@selector(audioPlayer:pushInfo:toTrack:) withObject:info withObject:[bufferChain userInfo] waitUntilDone:NO];
|
||||
- (void)pushInfo:(NSDictionary *)info toTrack:(id)userInfo {
|
||||
[self sendDelegateMethod:@selector(audioPlayer:pushInfo:toTrack:) withObject:info withObject:userInfo waitUntilDone:NO];
|
||||
}
|
||||
|
||||
- (void)setShouldContinue:(BOOL)s {
|
||||
|
|
|
@ -262,7 +262,7 @@
|
|||
}
|
||||
|
||||
- (void)pushInfo:(NSDictionary *)info {
|
||||
[controller pushInfo:info];
|
||||
[controller pushInfo:info toTrack:userInfo];
|
||||
}
|
||||
|
||||
- (void)setError:(BOOL)status {
|
||||
|
|
Loading…
Reference in a new issue