summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-04-29 12:38:17 +0000
committerphintuka <phintuka>2008-04-29 12:38:17 +0000
commit6a84223dfb00d983c9d80c1cfeed2418f45a9fac (patch)
tree9c85e0cc1df9499afa72a01d3a85484c585ed320
parent139e13ee66cd07e76d109e659ef336c1b4164752 (diff)
downloadxineliboutput-6a84223dfb00d983c9d80c1cfeed2418f45a9fac.tar.gz
xineliboutput-6a84223dfb00d983c9d80c1cfeed2418f45a9fac.tar.bz2
Delete old setup keys
-rw-r--r--menu.c8
-rw-r--r--setup_menu.c17
2 files changed, 23 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 9d93dc47..0ec859ff 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c,v 1.55 2008-04-29 11:33:45 phintuka Exp $
+ * $Id: menu.c,v 1.56 2008-04-29 12:38:17 phintuka Exp $
*
*/
@@ -187,6 +187,12 @@ void cMenuBrowseFiles::StoreConfig(void)
xc.browse_files_dir);
cPluginManager::GetPlugin(PLUGIN_NAME_I18N)->SetupStore("Media.BrowseImagesDir",
xc.browse_images_dir);
+#if 1
+ // delete old keys (<1.0.0)
+ cPluginManager::GetPlugin(PLUGIN_NAME_I18N)->SetupStore("BrowseMusicDir");
+ cPluginManager::GetPlugin(PLUGIN_NAME_I18N)->SetupStore("BrowseFilesDir");
+ cPluginManager::GetPlugin(PLUGIN_NAME_I18N)->SetupStore("BrowseImagesDir");
+#endif
}
void cMenuBrowseFiles::SetHelpButtons(void)
diff --git a/setup_menu.c b/setup_menu.c
index 311096ac..f40971e4 100644
--- a/setup_menu.c
+++ b/setup_menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: setup_menu.c,v 1.56 2008-04-14 21:15:42 phintuka Exp $
+ * $Id: setup_menu.c,v 1.57 2008-04-29 12:38:17 phintuka Exp $
*
*/
@@ -827,6 +827,10 @@ void cMenuSetupVideo::Store(void)
SetupStore("Post.denoise3d.luma", xc.denoise3d_luma);
SetupStore("Post.denoise3d.chroma", xc.denoise3d_chroma);
SetupStore("Post.denoise3d.time", xc.denoise3d_time);
+#if 1
+ // delete old keys (<1.0.0)
+ SetupStore("Video.AutoScale");
+#endif
Setup.Save();
}
@@ -1000,6 +1004,12 @@ void cMenuSetupOSD::Store(void)
SetupStore("OSD.LayersVisible", xc.osd_mixer);
SetupStore("OSD.UnscaledAlways", xc.unscaled_osd);
SetupStore("OSD.UnscaledLowRes", xc.unscaled_osd_lowresvideo);
+#if 1
+ // Delete old keys (<=1.0.0)
+ SetupStore("OSD.UnscaledOpaque");
+ SetupStore("OSD.Prescale");
+ SetupStore("OSD.Downscale");
+#endif
SetupStore("OSD.AlphaCorrection", xc.alpha_correction);
SetupStore("OSD.AlphaCorrectionAbs", xc.alpha_correction_abs);
@@ -1105,6 +1115,11 @@ void cMenuSetupDecoder::Store(void)
xc.pes_buffers = xc.i_pesBufferSize[pes_buffers_ind];
SetupStore("Decoder.PesBuffers", xc.pes_buffers);
+#if 1
+ // delete old keys (<1.0.0)
+ SetupStore("Decoder.Priority");
+ SetupStore("Decoder.InactivityTimer");
+#endif
if(xc.pes_buffers != old_buffers)
cXinelibDevice::Instance().ConfigureDecoder(xc.pes_buffers);