Permalink
Browse files

lib: Init fifo if play_next is called

  • Loading branch information...
SimonKagstrom committed Jan 23, 2011
1 parent d559c6a commit 6d9dca78cd335e32e2b347ca8d2e220ae467323e
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/lib/despotify.c
View
@@ -455,6 +455,13 @@ bool despotify_play(struct despotify_session* ds,
void despotify_next(struct despotify_session* ds)
{
+ if (ds->fifo) {
+ snd_stop(ds);
+ ds->offset = 0;
+ }
+ else
+ snd_init(ds);
+
if (snd_next(ds))
return;

0 comments on commit 6d9dca7

Please sign in to comment.