aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/sidplay_plugin.cxx
diff options
context:
space:
mode:
authorTony <mcfiredrill@gmail.com>2009-09-25 17:20:17 -0700
committerMax Kellermann <max@duempel.org>2009-09-28 11:59:55 +0200
commit934a38f97673b63088ab5f019aa9c7273f4ef907 (patch)
tree38928344e5e3d56be5b8454eb4047c617d15ace5 /src/decoder/sidplay_plugin.cxx
parent8f261af5c1cfd6f922df009e17756fa3bef71458 (diff)
downloadmpd-934a38f97673b63088ab5f019aa9c7273f4ef907.tar.gz
mpd-934a38f97673b63088ab5f019aa9c7273f4ef907.tar.xz
mpd-934a38f97673b63088ab5f019aa9c7273f4ef907.zip
Make the sidplay decoder filter configurable.
Diffstat (limited to 'src/decoder/sidplay_plugin.cxx')
-rw-r--r--src/decoder/sidplay_plugin.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx
index 9988b15a8..d97abd656 100644
--- a/src/decoder/sidplay_plugin.cxx
+++ b/src/decoder/sidplay_plugin.cxx
@@ -41,6 +41,8 @@ static GKeyFile *songlength_database;
static bool all_files_are_containers;
static unsigned default_songlength;
+static bool filter_setting;
+
static GKeyFile *
sidplay_load_songlength_db(const char *path)
{
@@ -94,6 +96,8 @@ sidplay_init(const struct config_param *param)
path_with_subtune=g_pattern_spec_new(
"*/" SUBTUNE_PREFIX "???.sid");
+ filter_setting=config_get_block_bool(param, "filter", true);
+
return true;
}
@@ -235,7 +239,7 @@ sidplay_file_decode(struct decoder *decoder, const char *path_fs)
return;
}
- builder.filter(false);
+ builder.filter(filter_setting);
if (!builder) {
g_warning("ReSIDBuilder.filter() failed");
return;