added outputBufferShift()
Hiding OutputBuffer internals, yet again. Two more assertions. git-svn-id: https://svn.musicpd.org/mpd/trunk@7274 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
committed by
Eric Wong
parent
11a5728e1d
commit
2e648b57f3
@@ -557,10 +557,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
|
||||
break;
|
||||
pc->totalPlayTime +=
|
||||
sizeToTime * beginChunk->chunkSize;
|
||||
if ((unsigned)cb->begin + 1 >= buffered_chunks) {
|
||||
cb->begin = 0;
|
||||
} else
|
||||
cb->begin++;
|
||||
outputBufferShift(cb);
|
||||
player_wakeup_decoder_nb();
|
||||
} else if (!outputBufferEmpty(cb) && cb->begin == next) {
|
||||
/* at the beginning of a new song */
|
||||
|
||||
Reference in New Issue
Block a user