diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-11 07:53:19 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-11 11:23:36 +0200 |
commit | 6174152cfffd8e31b9eda238990a161c8c2b9a71 (patch) | |
tree | 4139a29fe84ef255c86d6818942bf86f729f1aff /avmedia | |
parent | 30fcee6ce56ec4e50ee86c308ca5621746d817d5 (diff) |
glTF: crash after starting a model without an OpenGL window
Change-Id: I726f4d62ab062fbd41376183f60c26d8e6cfe33e
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglplayer.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx index a4aa7838d774..a602d3cbfe3f 100644 --- a/avmedia/source/opengl/oglplayer.cxx +++ b/avmedia/source/opengl/oglplayer.cxx @@ -144,6 +144,9 @@ void SAL_CALL OGLPlayer::start() throw ( uno::RuntimeException, std::exception ) osl::MutexGuard aGuard(m_aMutex); assert(m_pHandle); + if(!m_pOGLWindow) + return; + // gltf_animation_start play animation from the time 0.0, // but OGLPlayer::start used as play from that time where it was stopped before double fTime = gltf_animation_get_time(m_pHandle); |