diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-16 20:15:44 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-16 20:15:44 +0200 |
commit | 743cf8e3a236a18080de2fb9467185d54e60afe4 (patch) | |
tree | cb0d30690fc8386e06afc97981074e41ab198ef4 | |
parent | 635c9daea388c25793585aada5a1a7f7dde3d296 (diff) |
gapless playback now can skip through deleted items
-rw-r--r-- | playlist.c | 1 | ||||
-rw-r--r-- | streamer.c | 6 | ||||
-rw-r--r-- | streamer.h | 3 |
3 files changed, 9 insertions, 1 deletions
@@ -473,6 +473,7 @@ int pl_remove (playItem_t *it) { if (!it) return -1; + streamer_song_removed_notify (it); pl_count--; if (playlist_current_ptr == it) { playlist_current_ptr = NULL; @@ -74,7 +74,11 @@ streamer_song_removed_notify (playItem_t *it) { } if (it == orig_streaming_song) { orig_streaming_song = NULL; - // FIXME: must queue new next song for streaming + // queue new next song for streaming + if (bytes_until_next_song > 0) { + streambuffer_fill = bytes_until_next_song; + pl_nextsong (0); + } } } @@ -63,4 +63,7 @@ streamer_get_playpos (void); int streamer_is_buffering (void); +void +streamer_song_removed_notify (playItem_t *it); + #endif // __STREAMER_H |