aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-03 21:18:22 +0100
committerMax Kellermann <max@duempel.org>2009-11-03 21:18:22 +0100
commit98d30ac9cfdd12c5bb5932145adc7218ff4fca9e (patch)
tree93ac23d35ea4ae6c834f300b9e0000d3e2604b32 /src/decoder_control.c
parent98150f503a808f4bb0d7be343f1a231a4c8ff0dc (diff)
downloadmpd-98d30ac9cfdd12c5bb5932145adc7218ff4fca9e.tar.gz
mpd-98d30ac9cfdd12c5bb5932145adc7218ff4fca9e.tar.xz
mpd-98d30ac9cfdd12c5bb5932145adc7218ff4fca9e.zip
decoder_control: pass pipe and buffer to dc_start()
Don't access decoder_control attributes directly.
Diffstat (limited to '')
-rw-r--r--src/decoder_control.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/decoder_control.c b/src/decoder_control.c
index 058cd3f33..7fe18088b 100644
--- a/src/decoder_control.c
+++ b/src/decoder_control.c
@@ -84,12 +84,16 @@ dc_command_async(struct decoder_control *dc, enum decoder_command cmd)
}
void
-dc_start(struct decoder_control *dc, struct song *song)
+dc_start(struct decoder_control *dc, struct song *song,
+ struct music_buffer *buffer, struct music_pipe *pipe)
{
- assert(dc->pipe != NULL);
assert(song != NULL);
+ assert(buffer != NULL);
+ assert(pipe != NULL);
dc->song = song;
+ dc->buffer = buffer;
+ dc->pipe = pipe;
dc_command(dc, DECODE_COMMAND_START);
}