]> git.sesse.net Git - vlc/commitdiff
-LPCM _is_ a private stream. Sorry.
authorStéphane Borel <stef@videolan.org>
Mon, 12 Nov 2001 03:07:13 +0000 (03:07 +0000)
committerStéphane Borel <stef@videolan.org>
Mon, 12 Nov 2001 03:07:13 +0000 (03:07 +0000)
-GetMACAddress takes the interface defined in the environment variable
vlc_iface instead of eth0

plugins/dvd/input_dvd.c
src/input/mpeg_system.c
src/misc/netutils.c

index 646a66454c48eb3879d5f4c3d83964eb9ea46797..12767a3608f46c563f017af1031225fc973dd6aa 100644 (file)
@@ -10,7 +10,7 @@
  *  -dvd_udf to find files
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: input_dvd.c,v 1.94 2001/11/11 18:15:41 sam Exp $
+ * $Id: input_dvd.c,v 1.95 2001/11/12 03:07:13 stef Exp $
  *
  * Author: Stéphane Borel <stef@via.ecp.fr>
  *
@@ -603,7 +603,7 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
                     i_id = ( ( 0xa0 + audio_status.i_position ) << 8 ) | 0xbd;
                     p_es = input_AddES( p_input,
                                     p_input->stream.pp_programs[0], i_id, 0 );
-                    p_es->i_stream_id = i_id;
+                    p_es->i_stream_id = 0xbd;
                     p_es->i_type = LPCM_AUDIO_ES;
                     p_es->b_audio = 1;
                     p_es->i_cat = AUDIO_ES;
index 8bc02abeb496b0a1f2f78e784a6d485b5a37f0cc..06c000233cfbb882218b99edad039a61d1d37f39 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.62 2001/11/12 01:56:33 stef Exp $
+ * $Id: mpeg_system.c,v 1.63 2001/11/12 03:07:13 stef Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Michel Lespinasse <walken@via.ecp.fr>
@@ -1499,14 +1499,15 @@ static void input_DecodePMT( input_thread_t * p_input, es_descriptor_t * p_es )
                         p_new_es->i_cat = VIDEO_ES;
                         input_SelectES( p_input, p_new_es );
                         break;
+                        p_new_es->i_stream_id = 0xBD;
                     case MPEG1_AUDIO_ES:
                     case MPEG2_AUDIO_ES:
-                    case LPCM_AUDIO_ES :
                         p_new_es->i_cat = AUDIO_ES;
                         i_audio_es += 1;
                         if( i_audio_es == i_required_audio_es )
                             input_SelectES( p_input, p_new_es );
                         break;
+                    case LPCM_AUDIO_ES :
                     case AC3_AUDIO_ES :
                         p_new_es->i_stream_id = 0xBD;
                         p_new_es->i_cat = AUDIO_ES;
index 0e8d34441a058f531509677f8fdf685227fdaf6d..468705d409e0e0f61ed61859c3e4c036b8b03b86 100644 (file)
@@ -2,7 +2,7 @@
  * netutils.c: various network functions
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: netutils.c,v 1.39 2001/10/10 14:25:15 sam Exp $
+ * $Id: netutils.c,v 1.40 2001/11/12 03:07:13 stef Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Benoit Steiner <benny@via.ecp.fr>
@@ -446,7 +446,8 @@ static int GetMacAddress( int i_socket, char *psz_mac )
      * Looking for information about the eth0 interface
      */
     interface.ifr_addr.sa_family = AF_INET;
-    strcpy( interface.ifr_name, INPUT_IFACE_DEFAULT );
+    strcpy( interface.ifr_name, 
+            main_GetPszVariable( INPUT_IFACE_VAR, INPUT_IFACE_DEFAULT ) );
 
     i_ret = ioctl( i_socket, SIOCGIFHWADDR, &interface );