summaryrefslogtreecommitdiff
path: root/plugins/converter/convgui.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-20 18:02:54 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-20 18:02:54 +0200
commit5cbe70bbcf646db0b3cbd823015de1f531297f5a (patch)
treefcfa77b25d21ff2e5d39baaf339884d9661b607e /plugins/converter/convgui.c
parent6113561aee612c16d504f2c85528d79a96b80013 (diff)
reload dsp and encoder presets on every converter access
Diffstat (limited to 'plugins/converter/convgui.c')
-rw-r--r--plugins/converter/convgui.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/converter/convgui.c b/plugins/converter/convgui.c
index a3f60eab..b94e0aef 100644
--- a/plugins/converter/convgui.c
+++ b/plugins/converter/convgui.c
@@ -355,6 +355,13 @@ converter_show_cb (void *ctx) {
static int
converter_show (DB_plugin_action_t *act, DB_playItem_t *it) {
+ if (converter_plugin->misc.plugin.version_minor >= 1) {
+ // reload all presets
+ converter_plugin->free_encoder_presets ();
+ converter_plugin->load_encoder_presets ();
+ converter_plugin->free_dsp_presets ();
+ converter_plugin->load_dsp_presets ();
+ }
// this can be called from non-gtk thread
gdk_threads_add_idle (converter_show_cb, NULL);
return 0;
@@ -1269,14 +1276,18 @@ convgui_connect (void) {
DB_misc_t plugin = {
DB_PLUGIN_SET_API_VERSION
.plugin.version_major = 1,
- .plugin.version_minor = 0,
+ .plugin.version_minor = 1,
.plugin.type = DB_PLUGIN_MISC,
.plugin.name = "Converter GTK UI",
.plugin.descr = "GTK2 User interface for the Converter plugin\n"
"Usage:\n"
"· select some tracks in playlist\n"
"· right click\n"
- "· select «Convert»",
+ "· select «Convert»\n\n"
+ "ChangeLog:\n"
+ "version 1.1\n"
+ " Reload DSP and encoder presets on every converter access\n"
+ " Write 0 wave data size into waveheader when using pipe, for oggenc compatibility\n",
.plugin.copyright =
"Copyright (C) 2009-2011 Alexey Yakovenko <waker@users.sourceforge.net>\n"
"\n"