aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c
index 668d08365..47dc96882 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -171,8 +171,7 @@ static int decodeSeek(PlayerControl * pc, DecoderControl * dc,
dc->current_song != pc->current_song) {
stopDecode(dc);
*next = -1;
- cb->begin = 0;
- cb->end = 0;
+ clearOutputBuffer(cb);
dc->error = DECODE_ERROR_NOERROR;
dc->start = 1;
waitOnDecode(pc, dc, cb, decodeWaitedOn);
@@ -607,9 +606,8 @@ void decode(void)
DecoderControl *dc;
cb = &(getPlayerData()->buffer);
+ clearOutputBuffer(cb);
- cb->begin = 0;
- cb->end = 0;
pc = &(getPlayerData()->playerControl);
dc = &(getPlayerData()->decoderControl);
dc->error = DECODE_ERROR_NOERROR;