diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/gl_video_view.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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 (); } |
