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

View File

@@ -369,7 +369,7 @@ decoder_run_song(struct decoder_control *dc,
{
struct decoder decoder = {
.dc = dc,
.initial_seek_pending = song->start_ms > 0,
.initial_seek_pending = dc->start_ms > 0,
.initial_seek_running = false,
};
int ret;