X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=player.cpp;h=b9ac64cbb8798abcd1b8927a9ec069e8cc10115d;hb=9c8b3d2c80d20a391ada89a2a54910ec35c036d2;hp=6e45f39cd3fc5cc2aaa6ac5b4770ef09b5ac5085;hpb=3a2c9e40ad5550a729a754de5df83a0650724415;p=nageru diff --git a/player.cpp b/player.cpp index 6e45f39..b9ac64c 100644 --- a/player.cpp +++ b/player.cpp @@ -67,11 +67,14 @@ void Player::thread_func() if (eof) break; } - // TODO: callback so that the next playlist item can be cued. { unique_lock lock(cue_state_mu); cue_state = PAUSED; } + + if (done_callback != nullptr) { + done_callback(); + } } }