From: RĂ©mi Duraffort Date: Sun, 24 Jan 2010 14:44:22 +0000 (+0100) Subject: libvlcpp: fix compilation. X-Git-Tag: 1.1.0-ff~978 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e50b47115ab603c95c9eb7ccc78b3380329abe3a;p=vlc libvlcpp: fix compilation. --- diff --git a/bindings/libvlcpp/src/media_player.cpp b/bindings/libvlcpp/src/media_player.cpp index 72c14b97ce..c44189f6c2 100644 --- a/bindings/libvlcpp/src/media_player.cpp +++ b/bindings/libvlcpp/src/media_player.cpp @@ -45,14 +45,12 @@ MediaPlayer::~MediaPlayer() void MediaPlayer::setMedia( Media &media ) { - Exception ex; - libvlc_media_player_set_media( m_player, media.instance(), &ex.ex ); + libvlc_media_player_set_media( m_player, media.instance() ); } int MediaPlayer::isPlaying() { - Exception ex; - return libvlc_media_player_is_playing( m_player, &ex.ex ); + return libvlc_media_player_is_playing( m_player ); } void MediaPlayer::play() @@ -69,14 +67,12 @@ void MediaPlayer::pause() void MediaPlayer::stop() { - Exception ex; - libvlc_media_player_stop( m_player, &ex.ex ); + libvlc_media_player_stop( m_player ); } void MediaPlayer::setNSObject( void *drawable ) { - Exception ex; - libvlc_media_player_set_nsobject( m_player, drawable, &ex.ex ); + libvlc_media_player_set_nsobject( m_player, drawable ); } void* MediaPlayer::nsobject() @@ -86,8 +82,7 @@ void* MediaPlayer::nsobject() void MediaPlayer::setAgl( uint32_t drawable ) { - Exception ex; - libvlc_media_player_set_agl( m_player, drawable, &ex.ex ); + libvlc_media_player_set_agl( m_player, drawable ); } uint32_t MediaPlayer::agl() @@ -97,8 +92,7 @@ uint32_t MediaPlayer::agl() void MediaPlayer::setXWindow( uint32_t drawable ) { - Exception ex; - libvlc_media_player_set_xwindow( m_player, drawable, &ex.ex ); + libvlc_media_player_set_xwindow( m_player, drawable ); } uint32_t MediaPlayer::xwindow() @@ -108,8 +102,7 @@ uint32_t MediaPlayer::xwindow() void MediaPlayer::setHwnd( void *drawable ) { - Exception ex; - libvlc_media_player_set_hwnd( m_player, drawable, &ex.ex ); + libvlc_media_player_set_hwnd( m_player, drawable ); } void *MediaPlayer::hwnd() @@ -221,8 +214,7 @@ void MediaPlayer::setRate( float rate ) libvlc_state_t MediaPlayer::state() { - Exception ex; - return libvlc_media_player_get_state( m_player, &ex.ex ); + return libvlc_media_player_get_state( m_player ); } float MediaPlayer::fps()