[vlmc-devel] VLCMediaPlayer: minor simplifications

Hugo Beauzée-Luyssen git at videolan.org
Sun Mar 2 12:50:37 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Mar  1 19:11:39 2014 +0100| [7b3f6074cc05741275cbeeb5a5f2cc07fa7efdbd] | committer: Hugo Beauzée-Luyssen

VLCMediaPlayer: minor simplifications

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=7b3f6074cc05741275cbeeb5a5f2cc07fa7efdbd
---

 src/Backend/VLC/LibVLCpp/VLCMediaPlayer.cpp |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/Backend/VLC/LibVLCpp/VLCMediaPlayer.cpp b/src/Backend/VLC/LibVLCpp/VLCMediaPlayer.cpp
index 1e857ca..7d76186 100644
--- a/src/Backend/VLC/LibVLCpp/VLCMediaPlayer.cpp
+++ b/src/Backend/VLC/LibVLCpp/VLCMediaPlayer.cpp
@@ -105,8 +105,7 @@ MediaPlayer::stop()
 int
 MediaPlayer::getVolume()
 {
-    int volume = libvlc_audio_get_volume( m_internalPtr );
-    return volume;
+    return libvlc_audio_get_volume( m_internalPtr );
 }
 
 int
@@ -209,15 +208,13 @@ MediaPlayer::hasVout()
 int
 MediaPlayer::getNbAudioTrack()
 {
-    int res = libvlc_audio_get_track_count( m_internalPtr );
-    return res;
+    return libvlc_audio_get_track_count( m_internalPtr );
 }
 
 int
 MediaPlayer::getNbVideoTrack()
 {
-    int res = libvlc_video_get_track_count( m_internalPtr );
-    return res;
+    return libvlc_video_get_track_count( m_internalPtr );
 }
 
 void



More information about the Vlmc-devel mailing list