]> git.sesse.net Git - nageru/blobdiff - player.cpp
Make it possible to play an entire playlist of clips.
[nageru] / player.cpp
index 6e45f39cd3fc5cc2aaa6ac5b4770ef09b5ac5085..b9ac64cbb8798abcd1b8927a9ec069e8cc10115d 100644 (file)
@@ -67,11 +67,14 @@ void Player::thread_func()
                        if (eof) break;
                }
 
-               // TODO: callback so that the next playlist item can be cued.
                {
                        unique_lock<mutex> lock(cue_state_mu);
                        cue_state = PAUSED;
                }
+
+               if (done_callback != nullptr) {
+                       done_callback();
+               }
        }
 }