]> git.sesse.net Git - vlc/commitdiff
. fixed "-a [ mpeg | ac3 | lpcm | off ]" option
authorSam Hocevar <sam@videolan.org>
Wed, 20 Dec 2000 20:09:19 +0000 (20:09 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 20 Dec 2000 20:09:19 +0000 (20:09 +0000)
src/input/mpeg_system.c

index 67dd67be84aa5be64e7b1fcb45447b91ee74e50e..ea93ec302c8eeaea7bc3f996e4abb535568586f2 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg_system.c: TS, PS and PES management
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: mpeg_system.c,v 1.11 2000/12/20 17:49:40 massiot Exp $
+ * $Id: mpeg_system.c,v 1.12 2000/12/20 20:09:19 sam Exp $
  *
  * Authors: 
  *
@@ -816,8 +816,8 @@ es_descriptor_t * input_ParsePS( input_thread_t * p_input,
                         /* MPEG audio */
                         p_es->i_type = MPEG2_AUDIO_ES;
 #ifdef AUTO_SPAWN
-                        if( main_GetIntVariable( INPUT_DVD_AUDIO_VAR,
-                                                 REQUESTED_MPEG ) 
+                        if( main_GetIntVariable( INPUT_DVD_AUDIO_VAR, 0 )
+                                == REQUESTED_MPEG
                           && main_GetIntVariable( INPUT_DVD_CHANNEL_VAR, 0 )
                                 == (p_es->i_stream_id & 0x1F) )
                         {
@@ -830,8 +830,8 @@ es_descriptor_t * input_ParsePS( input_thread_t * p_input,
                         /* AC3 audio (0x80->0x8F) */
                         p_es->i_type = AC3_AUDIO_ES;
 #ifdef AUTO_SPAWN
-                        if( main_GetIntVariable( INPUT_DVD_AUDIO_VAR,
-                                                 REQUESTED_AC3 )
+                        if( main_GetIntVariable( INPUT_DVD_AUDIO_VAR, 0 )
+                                == REQUESTED_AC3
                          && main_GetIntVariable( INPUT_DVD_CHANNEL_VAR, 0 )
                                 == ((p_es->i_stream_id & 0xF00) >> 8) )
                         {