[vlc-devel] [PATCH] Qt: Save the sound level when exiting

Ludovic Fauvet etix at l0cal.com
Tue Aug 11 22:27:59 CEST 2009

2009/8/11 Rémi Denis-Courmont <remi at remlab.net>:
> With this patch and a DVD in the drive:
> # vlc --no-video --qt-autosave-volume dvd://
> No video (as expected)
> # vlc dvd://
> No video (not quite as expected)
> # vlc dvd://
> No video ever again!

Thanks for pointing this out.
Now I understand why going into the preferences may break the config file ;-)

If I replace the line
config_SaveConfigFile( p_intf, NULL );

by this one
config_SaveConfigFile( p_intf, "main" );

it would be a way better but it will still break all parameters
contained in the "main" section.
So the question is, is there any way to save (and write) only one
parameter and not a whole section ? After a bit of research it seems
to me that this is the only solution, but I might be wrong.

Ludovic Fauvet
| Jabber : etix at im.l0cal.com
| GPG    : 1024D/BB558EED

More information about the vlc-devel mailing list