aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-05 22:37:59 +0200
committerMax Kellermann <max@duempel.org>2011-10-05 23:15:22 +0200
commit64b0ba6da7975fdde774f188b1647ab6c9024cfa (patch)
treea27f708b535cf488d626480750d87e7124e36b2f /src/player_thread.c
parent99d4ae0c1ae5522202d71381b40f55418e7d531a (diff)
downloadmpd-64b0ba6da7975fdde774f188b1647ab6c9024cfa.tar.gz
mpd-64b0ba6da7975fdde774f188b1647ab6c9024cfa.tar.xz
mpd-64b0ba6da7975fdde774f188b1647ab6c9024cfa.zip
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.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index be08aa32d..b63758544 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -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);
}
/**