[vlmc-devel] VLCMediaPlayer: Use a powerful casting method

Rohit Yadav git at videolan.org
Fri Mar 25 10:27:52 CET 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Mar 25 15:14:49 2011 +0530| [b00c00c1f5d2e100b1f15adc3dbbc412cc7dd8ea] | committer: Rohit Yadav

VLCMediaPlayer: Use a powerful casting method

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b00c00c1f5d2e100b1f15adc3dbbc412cc7dd8ea
---

 src/LibVLCpp/VLCMediaPlayer.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/LibVLCpp/VLCMediaPlayer.cpp b/src/LibVLCpp/VLCMediaPlayer.cpp
index e9f2dd3..141d38d 100644
--- a/src/LibVLCpp/VLCMediaPlayer.cpp
+++ b/src/LibVLCpp/VLCMediaPlayer.cpp
@@ -222,11 +222,10 @@ MediaPlayer::isSeekable()
 void
 MediaPlayer::setDrawable( void* drawable )
 {
-    qDebug() << "In MediaPlayer::setDrawable(hwnd), == " << drawable;
 #if defined ( Q_WS_MAC )
     libvlc_media_player_set_nsobject( m_internalPtr, drawable );
 #elif defined ( Q_OS_UNIX )
-    libvlc_media_player_set_xwindow( m_internalPtr, static_cast< uint32_t >(drawable) );
+    libvlc_media_player_set_xwindow( m_internalPtr, (uint32_t) reinterpret_cast< long >(drawable) );
 #elif defined ( Q_OS_WIN )
     libvlc_media_player_set_hwnd( m_internalPtr, drawable );
 #endif



More information about the Vlmc-devel mailing list