decoder_control: add attributes start_ms, end_ms

Don't read song.start_ms and song.end_ms, let the player thread manage
this logic instead.
This commit is contained in:
Max Kellermann
2011-10-05 22:37:59 +02:00
parent 99d4ae0c1a
commit 64b0ba6da7
5 changed files with 31 additions and 6 deletions
+3 -1
View File
@@ -145,7 +145,9 @@ player_dc_start(struct player *player, struct music_pipe *pipe)
assert(player->queued || pc.command == PLAYER_COMMAND_SEEK);
assert(pc.next_song != NULL);
dc_start(dc, pc.next_song, player_buffer, pipe);
dc_start(dc, pc.next_song,
pc.next_song->start_ms, pc.next_song->end_ms,
player_buffer, pipe);
}
/**