X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fplayer.cpp;h=12b1616978c3c002140ead42f2660c34a5f8019e;hb=d3aaa6449bc96989cb435b65c30199772d7ba353;hp=cebc317801c4588f81170dcf02b82b0c8cbe167f;hpb=a71e57d444a2f7312e052337ea668c0d432d6497;p=nageru diff --git a/futatabi/player.cpp b/futatabi/player.cpp index cebc317..12b1616 100644 --- a/futatabi/player.cpp +++ b/futatabi/player.cpp @@ -506,11 +506,12 @@ Player::Player(JPEGFrameView *destination, Player::StreamOutput stream_output, A Player::~Player() { should_quit = true; + new_clip_changed.notify_all(); + player_thread.join(); + if (video_stream != nullptr) { video_stream->stop(); } - new_clip_changed.notify_all(); - player_thread.join(); } void Player::play(const vector &clips)