diff options
Diffstat (limited to 'avmedia/source/opengl/oglplayer.cxx')
-rw-r--r-- | avmedia/source/opengl/oglplayer.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx index 22ff457f8bae..fefbb314518c 100644 --- a/avmedia/source/opengl/oglplayer.cxx +++ b/avmedia/source/opengl/oglplayer.cxx @@ -31,6 +31,7 @@ OGLPlayer::OGLPlayer() OGLPlayer::~OGLPlayer() { + osl::MutexGuard aGuard(m_aMutex); if( m_pHandle ) { for (size_t i = 0; i < m_pHandle->size; ++i) @@ -63,6 +64,8 @@ static bool lcl_LoadFile( glTFFile* io_pFile, const OUString& rURL) bool OGLPlayer::create( const OUString& rURL ) { + osl::MutexGuard aGuard(m_aMutex); + m_sURL = rURL; // Load *.json file and init renderer @@ -297,8 +300,8 @@ IMPL_LINK(OGLPlayer,TimerHandler,Timer*,pTimer) { if (pTimer == &m_aTimer) { + osl::MutexGuard aGuard(m_aMutex); m_pOGLWindow->update(); - m_aTimer.Start(); } return 0; |