]> git.sesse.net Git - vlc/commit
Undo misuse of module_config_t.b_dirty
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 1 Apr 2012 09:33:39 +0000 (12:33 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 1 Apr 2012 09:39:18 +0000 (12:39 +0300)
commit5eeeb50da9a0dc92e265f11861d786307a23b4eb
tree624edd95f16ef756808191643a628f80b722940d
parent0041fd5c1d6dec6ff43a5e1ecabfcb028e2f10f3
Undo misuse of module_config_t.b_dirty

This fixes a bug whereby the configuration would not be saved because
Qt4 cleared the b_dirty flag instead of minding its own business.

The core determines whether the value of a configuration item as changed
using b_dirty. b_dirty is _not_ meant to signal changes in choices list.
Configuration callbacks blindly set b_dirty, so the UI can assume that
choices changed. Besides those callbacks should be removed as they do
not follow the locking model of the configuration and can cause crashes.
modules/access/dshow/dshow.cpp
modules/audio_output/alsa.c
modules/audio_output/directx.c
modules/audio_output/waveout.c
modules/gui/qt4/components/preferences_widgets.cpp
modules/video_output/msw/directx.c