>From 0f29ab3959eb5a7cdcf961e0ea73822145226435 Mon Sep 17 00:00:00 2001 From: Tony <mcfiredr...@gmail.com> Date: Fri, 25 Sep 2009 17:20:17 -0700 Subject: [PATCH] Make the sidplay decoder filter configurable.
--- src/decoder/sidplay_plugin.cxx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx index 9988b15..d97abd6 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; -- 1.6.3.3 On Thu, Sep 24, 2009 at 04:56:26PM -0700, Tony Miller wrote: > From 92523a1719098588ef19c696ac5f5db52230a3ec Mon Sep 17 00:00:00 2001 > From: mcfiredrill <t...@p_p-o.beaverton.or.bverton.comcast.net> > Date: Thu, 24 Sep 2009 00:06:01 -0700 > Subject: [PATCH] Make the filter for the sidplay decoder configurable. > > --- > src/decoder/sidplay_plugin.cxx | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx > index 5228dbe..ee860b3 100644 > --- a/src/decoder/sidplay_plugin.cxx > +++ b/src/decoder/sidplay_plugin.cxx > @@ -40,6 +40,7 @@ static GKeyFile *songlength_database; > > static bool all_files_are_containers; > static unsigned default_songlength; > +static bool filter; > > static bool > sidplay_init(const struct config_param *param) > @@ -83,6 +84,8 @@ sidplay_init(const struct config_param *param) > path_with_subtune=g_pattern_spec_new( > "*/" SUBTUNE_PREFIX "???.sid"); > > + filter=config_get_block_bool(param, "filter", true); > + > return true; > } > > @@ -224,7 +227,7 @@ sidplay_file_decode(struct decoder *decoder, const > char *path_fs) > return; > } > > - builder.filter(false); > + builder.filter(filter); > if (!builder) { > g_warning("ReSIDBuilder.filter() failed"); > return; > -- > 1.6.0.6 > > ---------- Forwarded message ---------- > From: Tony Miller <mcfiredr...@gmail.com> > Date: Thu, Sep 24, 2009 at 12:30 AM > Subject: [PATCH 1/2] make sidplay filter configurable > To: musicpd-dev-team@lists.sourceforge.net > > > > > --- > ?src/decoder/sidplay_plugin.cxx |??? 5 ++++- > ?1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx > index 5228dbe..ee860b3 100644 > --- a/src/decoder/sidplay_plugin.cxx > +++ b/src/decoder/sidplay_plugin.cxx > @@ -40,6 +40,7 @@ static GKeyFile *songlength_database; > > ?static bool all_files_are_containers; > ?static unsigned default_songlength; > +static bool filter; > > ?static bool > ?sidplay_init(const struct config_param *param) > @@ -83,6 +84,8 @@ sidplay_init(const struct config_param *param) > ??? path_with_subtune=g_pattern_spec_new( > ??????????? "*/" SUBTUNE_PREFIX "???.sid"); > > +?? filter=config_get_block_bool(param, "filter", true); > + > ??? return true; > ?} > > @@ -224,7 +227,7 @@ sidplay_file_decode(struct decoder *decoder, const > char *path_fs) > ??????? return; > ??? } > > -?? builder.filter(false); > +?? builder.filter(filter); > ??? if (!builder) { > ??????? g_warning("ReSIDBuilder.filter() failed"); > ??????? return; > -- > 1.6.0.6 ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team