Commit f24add47 authored by Christophe Courtaut's avatar Christophe Courtaut
Browse files

Change setDrawable (deprecated) to spec functions

parent a6791f7f
......@@ -90,8 +90,12 @@ bool MediaPlayer::isSeekable()
return (res == 1);
}
void MediaPlayer::setDrawable(int handle)
void MediaPlayer::setDrawable( void* hwnd )
{
libvlc_drawable_t window = handle;
libvlc_media_player_set_drawable( m_internalPtr, window, m_ex );
libvlc_media_player_set_hwnd( m_internalPtr, hwnd, m_ex );
}
void MediaPlayer::setDrawable( uint32_t drawable )
{
libvlc_media_player_set_xwindow( m_internalPtr, drawable, m_ex );
}
......@@ -46,7 +46,8 @@ namespace LibVLCpp
void takeSnapshot( char* outputFile, unsigned int width, unsigned int heigth );
bool isPlaying();
bool isSeekable();
void setDrawable(int handle);
void setDrawable( void* hwnd );
void setDrawable( uint32_t drawable );
private:
Exception m_ex;
......
......@@ -172,7 +172,7 @@ QImage& Media::getImage()
return *m_image;
}
void Media::setDrawable(int handle)
void Media::setDrawable( WId handle )
{
m_vlcMediaPlayer->setDrawable(handle);
m_vlcMediaPlayer->setDrawable( handle );
}
......@@ -71,7 +71,7 @@ public:
* When pre-launching is completed, a "mediaReady" signal will be fired.
*/
void play();
void setDrawable(int handle);
void setDrawable( WId handle );
private:
virtual void run();
......
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