Commit e50b4711 authored by Rémi Duraffort's avatar Rémi Duraffort

libvlcpp: fix compilation.

parent 07867ac8
...@@ -45,14 +45,12 @@ MediaPlayer::~MediaPlayer() ...@@ -45,14 +45,12 @@ MediaPlayer::~MediaPlayer()
void MediaPlayer::setMedia( Media &media ) void MediaPlayer::setMedia( Media &media )
{ {
Exception ex; libvlc_media_player_set_media( m_player, media.instance() );
libvlc_media_player_set_media( m_player, media.instance(), &ex.ex );
} }
int MediaPlayer::isPlaying() int MediaPlayer::isPlaying()
{ {
Exception ex; return libvlc_media_player_is_playing( m_player );
return libvlc_media_player_is_playing( m_player, &ex.ex );
} }
void MediaPlayer::play() void MediaPlayer::play()
...@@ -69,14 +67,12 @@ void MediaPlayer::pause() ...@@ -69,14 +67,12 @@ void MediaPlayer::pause()
void MediaPlayer::stop() void MediaPlayer::stop()
{ {
Exception ex; libvlc_media_player_stop( m_player );
libvlc_media_player_stop( m_player, &ex.ex );
} }
void MediaPlayer::setNSObject( void *drawable ) void MediaPlayer::setNSObject( void *drawable )
{ {
Exception ex; libvlc_media_player_set_nsobject( m_player, drawable );
libvlc_media_player_set_nsobject( m_player, drawable, &ex.ex );
} }
void* MediaPlayer::nsobject() void* MediaPlayer::nsobject()
...@@ -86,8 +82,7 @@ void* MediaPlayer::nsobject() ...@@ -86,8 +82,7 @@ void* MediaPlayer::nsobject()
void MediaPlayer::setAgl( uint32_t drawable ) void MediaPlayer::setAgl( uint32_t drawable )
{ {
Exception ex; libvlc_media_player_set_agl( m_player, drawable );
libvlc_media_player_set_agl( m_player, drawable, &ex.ex );
} }
uint32_t MediaPlayer::agl() uint32_t MediaPlayer::agl()
...@@ -97,8 +92,7 @@ uint32_t MediaPlayer::agl() ...@@ -97,8 +92,7 @@ uint32_t MediaPlayer::agl()
void MediaPlayer::setXWindow( uint32_t drawable ) void MediaPlayer::setXWindow( uint32_t drawable )
{ {
Exception ex; libvlc_media_player_set_xwindow( m_player, drawable );
libvlc_media_player_set_xwindow( m_player, drawable, &ex.ex );
} }
uint32_t MediaPlayer::xwindow() uint32_t MediaPlayer::xwindow()
...@@ -108,8 +102,7 @@ uint32_t MediaPlayer::xwindow() ...@@ -108,8 +102,7 @@ uint32_t MediaPlayer::xwindow()
void MediaPlayer::setHwnd( void *drawable ) void MediaPlayer::setHwnd( void *drawable )
{ {
Exception ex; libvlc_media_player_set_hwnd( m_player, drawable );
libvlc_media_player_set_hwnd( m_player, drawable, &ex.ex );
} }
void *MediaPlayer::hwnd() void *MediaPlayer::hwnd()
...@@ -221,8 +214,7 @@ void MediaPlayer::setRate( float rate ) ...@@ -221,8 +214,7 @@ void MediaPlayer::setRate( float rate )
libvlc_state_t MediaPlayer::state() libvlc_state_t MediaPlayer::state()
{ {
Exception ex; return libvlc_media_player_get_state( m_player );
return libvlc_media_player_get_state( m_player, &ex.ex );
} }
float MediaPlayer::fps() float MediaPlayer::fps()
......
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