Commit d675fdfc authored by Rocky Bernstein's avatar Rocky Bernstein

Make sure a couple of variables are initialized before

reading. (caught by valgrind).
parent 3ba2ac17
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* to go here. * to go here.
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2003, 2004 VideoLAN * Copyright (C) 2000, 2003, 2004 VideoLAN
* $Id: access.c,v 1.19 2004/02/19 02:05:12 rocky Exp $ * $Id: access.c,v 1.20 2004/02/22 09:35:48 rocky Exp $
* *
* Authors: Rocky Bernstein <rocky@panix.com> * Authors: Rocky Bernstein <rocky@panix.com>
* Johan Bilien <jobi@via.ecp.fr> * Johan Bilien <jobi@via.ecp.fr>
...@@ -340,8 +340,8 @@ VCDSetArea( input_thread_t * p_input, input_area_t * p_area ) ...@@ -340,8 +340,8 @@ VCDSetArea( input_thread_t * p_input, input_area_t * p_area )
{ {
VCDUpdateVar( p_input, i , VLC_VAR_ADDCHOICE, VCDUpdateVar( p_input, i , VLC_VAR_ADDCHOICE,
"chapter", "chapter",
p_vcd->play_item.type == VCDINFO_ITEM_TYPE_ENTRY ? p_vcd->play_item.type == VCDINFO_ITEM_TYPE_SEGMENT ?
_("Entry") : _("Segment"), _("Segment"): _("Entry"),
"Adding entry choice"); "Adding entry choice");
} }
...@@ -1458,6 +1458,8 @@ E_(Open) ( vlc_object_t *p_this ) ...@@ -1458,6 +1458,8 @@ E_(Open) ( vlc_object_t *p_this )
p_input->p_access_data = (void *)p_vcd; p_input->p_access_data = (void *)p_vcd;
p_vcd->i_debug = config_GetInt( p_this, MODULE_STRING "-debug" ); p_vcd->i_debug = config_GetInt( p_this, MODULE_STRING "-debug" );
p_vcd->in_still = false;
p_vcd->play_item.type = VCDINFO_ITEM_TYPE_NOTFOUND;
/* Set where to log errors messages from libcdio. */ /* Set where to log errors messages from libcdio. */
p_vcd_input = (input_thread_t *)p_this; p_vcd_input = (input_thread_t *)p_this;
......
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