non-blocking seeking, needs some testing! (this is not just for streams
but new code for files seeking as well) git-svn-id: https://svn.musicpd.org/mpd/trunk@1099 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -73,13 +73,11 @@ int sendDataToOutputBuffer(OutputBuffer * cb, DecoderControl * dc,
|
||||
|
||||
while(datalen) {
|
||||
if(currentChunk != cb->end) {
|
||||
while(cb->begin==cb->end && cb->wrap && !dc->stop &&
|
||||
!dc->seek)
|
||||
while(cb->begin==cb->end && cb->wrap && !dc->stop)
|
||||
{
|
||||
my_usleep(10000);
|
||||
}
|
||||
if(dc->stop) return OUTPUT_BUFFER_DC_STOP;
|
||||
if(dc->seek) return OUTPUT_BUFFER_DC_SEEK;
|
||||
|
||||
currentChunk = cb->end;
|
||||
cb->chunkSize[currentChunk] = 0;
|
||||
|
||||
Reference in New Issue
Block a user