Commit b00c00c1 authored by Rohit Yadav's avatar Rohit Yadav

VLCMediaPlayer: Use a powerful casting method

parent af9027e8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment