Commit f7cc7ca2 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/input_programs.c: small bug fix.
* src/misc/variables.c: compilation fix for MSVC.
parent 4ce136b2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management * input_programs.c: es_descriptor_t, pgrm_descriptor_t management
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2002 VideoLAN * Copyright (C) 1999-2002 VideoLAN
* $Id: input_programs.c,v 1.109 2003/05/11 18:40:11 hartman Exp $ * $Id: input_programs.c,v 1.110 2003/05/11 18:43:19 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -635,6 +635,7 @@ es_descriptor_t * input_AddES( input_thread_t * p_input, ...@@ -635,6 +635,7 @@ es_descriptor_t * input_AddES( input_thread_t * p_input,
text.psz_string = p_es->psz_desc; text.psz_string = p_es->psz_desc;
var_Change( p_input, psz_var, VLC_VAR_ADDCHOICE, &val, &text ); var_Change( p_input, psz_var, VLC_VAR_ADDCHOICE, &val, &text );
} }
else p_es->psz_desc = NULL;
return p_es; return p_es;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* variables.c: routines for object variables handling * variables.c: routines for object variables handling
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: variables.c,v 1.23 2003/05/05 15:21:27 sigmunau Exp $ * $Id: variables.c,v 1.24 2003/05/11 18:43:19 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -408,7 +408,7 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name, ...@@ -408,7 +408,7 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
INSERT_ELEM( p_var->choices.p_values, p_var->choices.i_count, INSERT_ELEM( p_var->choices.p_values, p_var->choices.i_count,
i, *p_val ); i, *p_val );
INSERT_ELEM( p_var->choices_text.p_values, INSERT_ELEM( p_var->choices_text.p_values,
p_var->choices_text.i_count, i, (vlc_value_t)0 ); p_var->choices_text.i_count, i, *p_val );
p_var->pf_dup( &p_var->choices.p_values[i] ); p_var->pf_dup( &p_var->choices.p_values[i] );
p_var->choices_text.p_values[i].psz_string = p_var->choices_text.p_values[i].psz_string =
( p_val2 && p_val2->psz_string ) ? ( p_val2 && p_val2->psz_string ) ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment