Commit 031f01c7 authored by Gildas Bazin's avatar Gildas Bazin

* small fix for the config file. The parser assumes that the config file is
divided into sections (a section is the config data for a plugin and begins
with something like [foo]), so the comment for the beginning of the section
must be after the section marker and not before.

If you want to illustrate the problem (without this fix):
- save vlc's config
- exit from vlc and remove for example the dsp plugin (rm plugins/dsp.so)
- resave vlc's config
and now look at the end of the config file, it's all screwed up.
parent f6451da5
......@@ -2,7 +2,7 @@
* configuration.c management of the modules configuration
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: configuration.c,v 1.5 2002/03/16 23:03:19 sam Exp $
* $Id: configuration.c,v 1.6 2002/03/17 11:12:08 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -578,11 +578,11 @@ int config_SaveConfigFile( const char *psz_module_name )
intf_WarnMsg( 5, "config: saving config for module <%s>",
p_module->psz_name );
fprintf( file, "[%s]\n", p_module->psz_name );
if( p_module->psz_longname )
fprintf( file, "###\n### %s\n###\n", p_module->psz_longname );
fprintf( file, "[%s]\n", p_module->psz_name );
for( i = 0; i < p_module->i_config_lines; i++ )
{
if( p_module->p_config[i].i_type & MODULE_CONFIG_HINT )
......
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