[vlc-devel] commit: Factorize. ( Rémi Duraffort )

git version control git at videolan.org
Sat Oct 10 11:57:44 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Sep 29 15:07:29 2009 +0200| [8ad631550d4595526b8bcd6e77873421db2bc778] | committer: Rémi Duraffort 

Factorize.

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

 modules/audio_output/sdl.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/audio_output/sdl.c b/modules/audio_output/sdl.c
index bd994c2..f6266a9 100644
--- a/modules/audio_output/sdl.c
+++ b/modules/audio_output/sdl.c
@@ -108,11 +108,9 @@ static int Open ( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    if ( var_Type( p_aout, "audio-device" ) != 0 )
+    if( var_Get( p_aout, "audio-device" ) != VLC_ENOVAR )
     {
         /* The user has selected an audio device. */
-        vlc_value_t val;
-        var_Get( p_aout, "audio-device", &val );
         if ( val.i_int == AOUT_VAR_STEREO )
         {
             p_aout->output.output.i_physical_channels




More information about the vlc-devel mailing list