diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-15 22:10:03 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-15 22:10:03 +0200 |
commit | 531d41bcf021753693caee9b25f03cad4a83bf7f (patch) | |
tree | ce837ceaccb5f99121fd5ee0c3ef0ad3d50f5bb9 /streamer.c | |
parent | 27940812964cd8a5151d25c146a07e823342e91d (diff) |
fixed stop_after_current regression
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1533,14 +1533,7 @@ streamer_read_async (char *bytes, int size) { trace ("streamer: EOF! buns: %d\n", bytes_until_next_song); // in case of decoder error, or EOF while buffering - switch to next song instantly - if (bytesread < 0 || (streamer_is_buffering() && bytesread == 0)) { - streamer_move_to_nextsong (0); - bytes_until_next_song = 0; - break; - } - - if (bytes_until_next_song < 0) // don't start streaming new if already draining - { + if (bytesread < 0 || (bytes_until_next_song < 0 && streamer_is_buffering() && bytesread == 0) || bytes_until_next_song < 0) { trace ("finished streaming song, queueing next\n"); bytes_until_next_song = streambuffer_fill; if (conf_get_int ("playlist.stop_after_current", 0)) { |