[Libreoffice-commits] core.git: avmedia/source

Zolnai Tamás tamas.zolnai at collabora.com
Sun Apr 20 13:59:04 PDT 2014


 avmedia/source/opengl/oglplayer.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 1517ad79f36914d63553b19e9a4ff39d0884408f
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Sun Apr 20 22:57:08 2014 +0200

    Try to fix build
    
    Change-Id: I0defecfe7370a3b2ebabe27b707952c1c192e077

diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx
index f1d514a..4224e35 100644
--- a/avmedia/source/opengl/oglplayer.cxx
+++ b/avmedia/source/opengl/oglplayer.cxx
@@ -197,7 +197,11 @@ uno::Reference< media::XFrameGrabber > SAL_CALL OGLPlayer::createFrameGrabber()
 {
     osl::MutexGuard aGuard(m_aMutex);
     m_aContext.init();
-    m_pHandle->viewport = glTFViewport({0,0,800,600}); //TODO: Use real values instead of constants.
+    //TODO: Use real values instead of constants.
+    m_pHandle->viewport.x = 0;
+    m_pHandle->viewport.y = 0;
+    m_pHandle->viewport.width = 800;
+    m_pHandle->viewport.height = 600;
     gltf_renderer_set_content(m_pHandle);
     OGLFrameGrabber *pFrameGrabber = new OGLFrameGrabber( m_pHandle );
     return uno::Reference< media::XFrameGrabber >( pFrameGrabber );;


More information about the Libreoffice-commits mailing list