X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fgl_video_view.cc;h=d3388282181bba2073a66278d260ac0863f587b0;hp=79ede0d8e843d8fee59dd7f51802552e1a5d9e68;hb=cfba7e0f9f20e68397e41d8f979e7723425ec51b;hpb=21e78df3645193f696873bdf29d39ea9f772395e diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 79ede0d8e..d33882821 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -112,16 +112,17 @@ GLVideoView::check_for_butler_errors () void GLVideoView::update () { - if (!_thread.joinable()) { - _thread = boost::thread (boost::bind(&GLVideoView::thread, this)); - } - { boost::mutex::scoped_lock lm (_canvas_mutex); if (!_canvas->IsShownOnScreen()) { return; } } + + if (!_thread.joinable()) { + _thread = boost::thread (boost::bind(&GLVideoView::thread, this)); + } + request_one_shot (); }