[vlc-devel] commit: phonon: Follow 2c57cb and remove exceptions in calls. ( Colin Guthrie )
git version control
git at videolan.org
Mon Jan 25 09:31:50 CET 2010
vlc | branch: master | Colin Guthrie <cguthrie at mandriva.org> | Mon Jan 25 01:11:18 2010 +0000| [320641ea29771765672e6f2dc67ab84d76a7e0bb] | committer: Jean-Baptiste Kempf
phonon: Follow 2c57cb and remove exceptions in calls.
(cherry picked from commit 80048bbcbf55c63290f3b2f6b1f04ce2f6b8d9f9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=320641ea29771765672e6f2dc67ab84d76a7e0bb
---
bindings/phonon/vlc/vlcmediaobject.cpp | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/bindings/phonon/vlc/vlcmediaobject.cpp b/bindings/phonon/vlc/vlcmediaobject.cpp
index 4e06f35..31a3965 100644
--- a/bindings/phonon/vlc/vlcmediaobject.cpp
+++ b/bindings/phonon/vlc/vlcmediaobject.cpp
@@ -57,7 +57,7 @@ VLCMediaObject::~VLCMediaObject()
{
unloadMedia();
- libvlc_media_player_stop(p_vlc_media_player, vlc_exception); // ensure that we are stopped
+ libvlc_media_player_stop(p_vlc_media_player); // ensure that we are stopped
libvlc_media_player_release(p_vlc_media_player);
}
@@ -83,8 +83,7 @@ void VLCMediaObject::loadMediaInternal(const QString & filename)
vlcExceptionRaised();
// Set the media that will be used by the media player
- libvlc_media_player_set_media(p_vlc_media_player, p_vlc_media, vlc_exception);
- vlcExceptionRaised();
+ libvlc_media_player_set_media(p_vlc_media_player, p_vlc_media);
// No need to keep the media now
// libvlc_media_release(p_vlc_media);
@@ -119,13 +118,12 @@ void VLCMediaObject::setVLCWidgetId()
{
// Get our media player to use our window
#if defined(Q_OS_UNIX)
- libvlc_media_player_set_xwindow(p_vlc_media_player, i_video_widget_id, vlc_exception);
+ libvlc_media_player_set_xwindow(p_vlc_media_player, i_video_widget_id);
#elif defined(Q_OS_WIN)
- libvlc_media_player_set_hwnd(p_vlc_media_player, i_video_widget_id, vlc_exception);
+ libvlc_media_player_set_hwnd(p_vlc_media_player, i_video_widget_id);
#elif defined(Q_OS_MAC)
- libvlc_media_player_set_agl(p_vlc_media_player, i_video_widget_id, vlc_exception);
+ libvlc_media_player_set_agl(p_vlc_media_player, i_video_widget_id);
#endif
- vlcExceptionRaised();
}
void VLCMediaObject::playInternal()
@@ -152,8 +150,7 @@ void VLCMediaObject::pause()
void VLCMediaObject::stop()
{
- libvlc_media_player_stop(p_vlc_media_player, vlc_exception);
- vlcExceptionRaised();
+ libvlc_media_player_stop(p_vlc_media_player);
// unloadMedia();
}
@@ -182,7 +179,7 @@ bool VLCMediaObject::isSeekable() const
void VLCMediaObject::connectToAllVLCEvents()
{
// Get the event manager from which the media player send event
- p_vlc_media_player_event_manager = libvlc_media_player_event_manager(p_vlc_media_player, vlc_exception);
+ p_vlc_media_player_event_manager = libvlc_media_player_event_manager(p_vlc_media_player);
libvlc_event_type_t eventsMediaPlayer[] = {
libvlc_MediaPlayerPlaying,
libvlc_MediaPlayerPaused,
More information about the vlc-devel
mailing list