diff options
author | 2010-03-24 23:06:38 +0100 | |
---|---|---|
committer | 2010-03-24 23:06:38 +0100 | |
commit | 5b8000f768f845e36ddde3ccca18f119b7a37d15 (patch) | |
tree | d26ac7f387478ef2582c34f1003ae3d7bc28d1e4 /streamer.c | |
parent | 8898269bcdbc8dac0306c6ebbc07bccc8b21fa87 (diff) |
fixed bugs when seeking in very short streams, or very close to the end of stream
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -808,6 +808,7 @@ streamer_thread (void *ctx) { } } + bytes_until_next_song = -1; streamer_buffering = 1; int trk = str_get_idx_of (streaming_track); if (trk != -1) { @@ -863,7 +864,7 @@ streamer_thread (void *ctx) { // if (streamer_buffering) trace ("fill: %d, read: %d, size=%d, blocksize=%d\n", streambuffer_fill, bytesread, STREAM_BUFFER_SIZE, blocksize); } streamer_unlock (); - if (streambuffer_fill > 128000 && streamer_buffering || !streaming_track) { + if ((streambuffer_fill > 128000 && streamer_buffering) || !streaming_track) { streamer_buffering = 0; if (streaming_track) { int trk = str_get_idx_of (streaming_track); |