X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fgl_video_view.h;h=84d97c751f859bf3f24a7e08fffa9b5a1f9cae54;hb=f644c272a6a6384f6bfc6ca16ada6208057402a8;hp=4f509049b3d4d954b60fd748f36f7188c24f9dff;hpb=6a3d9962dc774becf50dd92f0cca90c536343eda;p=dcpomatic.git diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index 4f509049b..84d97c751 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -57,13 +57,18 @@ private: void create (); void check_for_butler_errors (); + /* Mutex for use of _canvas; it's only contended when our ::thread + is started up so this may be overkill. + */ + boost::mutex _canvas_mutex; wxGLCanvas* _canvas; wxGLContext* _context; GLuint _id; boost::optional _size; + bool _have_storage; bool _vsync_enabled; - boost::thread* _thread; + boost::thread _thread; boost::mutex _playing_mutex; boost::condition _playing_condition;