[vlmc-devel] PreviewWidget: Cast to intptr_t on passing id to setWindowId()

Pawel Golinski git at videolan.org
Sat Jul 30 07:49:04 CEST 2016


vlmc | branch: master | Pawel Golinski <golpaw1 at gmail.com> | Wed Jul 20 22:51:50 2016 +0200| [c6fceb7cfc3545cd41171ee7599c7922eb7311ef] | committer: Yikai Lu

PreviewWidget: Cast to intptr_t on passing id to setWindowId()

Signed-off-by: Yikai Lu <luyikei.qmltu at gmail.com>

> https://code.videolan.org/videolan/vlmc/commit/c6fceb7cfc3545cd41171ee7599c7922eb7311ef
---

 src/Gui/preview/PreviewWidget.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/preview/PreviewWidget.cpp b/src/Gui/preview/PreviewWidget.cpp
index 6582f4c..f076663 100644
--- a/src/Gui/preview/PreviewWidget.cpp
+++ b/src/Gui/preview/PreviewWidget.cpp
@@ -73,7 +73,7 @@ PreviewWidget::setRenderer( AbstractRenderer* renderer )
     // Give the renderer to the ruler
     m_ui->rulerWidget->setRenderer( m_renderer );
     auto output = new Backend::MLT::MLTSdlOutput;
-    output->setWindowId( m_ui->renderWidget->id() );
+    output->setWindowId( (intptr_t)m_ui->renderWidget->id() );
     m_renderer->setOutput( std::unique_ptr<Backend::IOutput>( output ) );
 
 #if defined ( Q_OS_MAC )



More information about the Vlmc-devel mailing list