[vlc-devel] commit: libvlc apps don't know VLC error codes ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 5 20:56:59 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct  5 21:38:27 2009 +0300| [b79a3de0d3d93ad9c4315c0d1eb465d485806475] | committer: Rémi Denis-Courmont 

libvlc apps don't know VLC error codes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b79a3de0d3d93ad9c4315c0d1eb465d485806475
---

 src/control/audio.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/control/audio.c b/src/control/audio.c
index 89ee0a7..4ff09fd 100644
--- a/src/control/audio.c
+++ b/src/control/audio.c
@@ -409,19 +409,17 @@ int libvlc_audio_get_track( libvlc_media_player_t *p_mi,
     vlc_value_t val_list;
     vlc_value_t val;
     int i_track = -1;
-    int i_ret = -1;
     int i;
 
     if( !p_input_thread )
         return -1;
 
-    i_ret = var_Get( p_input_thread, "audio-es", &val );
-    if( i_ret < 0 )
+    if( var_Get( p_input_thread, "audio-es", &val ) < 0 )
     {
         vlc_object_release( p_input_thread );
         libvlc_exception_raise( p_e );
         libvlc_printerr( "Audio track information not found" );
-        return i_ret;
+        return -1;
     }
 
     var_Change( p_input_thread, "audio-es", VLC_VAR_GETCHOICES, &val_list, NULL );




More information about the vlc-devel mailing list