aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_control.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/decoder_control.c
parent99d4ae0c1ae5522202d71381b40f55418e7d531a (diff)
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/decoder_control.c')
-rw-r--r--src/decoder_control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder_control.c b/src/decoder_control.c
index a5e6e4ad..85c2e5ba 100644
--- a/src/decoder_control.c
+++ b/src/decoder_control.c
@@ -102,6 +102,7 @@ dc_command_async(struct decoder_control *dc, enum decoder_command cmd)
void
dc_start(struct decoder_control *dc, struct song *song,
+ unsigned start_ms, unsigned end_ms,
struct music_buffer *buffer, struct music_pipe *pipe)
{
assert(song != NULL);
@@ -110,6 +111,8 @@ dc_start(struct decoder_control *dc, struct song *song,
assert(music_pipe_empty(pipe));
dc->song = song;
+ dc->start_ms = start_ms;
+ dc->end_ms = end_ms;
dc->buffer = buffer;
dc->pipe = pipe;
dc_command(dc, DECODE_COMMAND_START);