Commit 0f04eb53 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* when config_ResetAll() a key config value becomes "Unset" (0) instead of

  it's original value. With this you at least won't break your config file,
  because it comments out the value during saving, when it's identical to the,
  original value. The question however remains, why does a resetAll result
  in a 0 in the 'current' config in use, and in original value at time of saving?
parent 11cd21f9
......@@ -2,7 +2,7 @@
* configuration.c management of the modules configuration
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: configuration.c,v 1.70 2003/11/08 18:23:40 titer Exp $
* $Id: configuration.c,v 1.71 2003/11/11 21:23:56 hartman Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -1120,6 +1120,8 @@ int __config_SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name )
if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text,
_("key") );
if( p_item->i_value == p_item->i_value_orig )
fprintf( file, "#" );
psz_key = ConfigKeyToString( p_item->i_value );
fprintf( file, "%s=%s\n", p_item->psz_name,
psz_key ? psz_key : "" );
......
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