summaryrefslogtreecommitdiff
path: root/plugins/cdda
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-29 17:01:15 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-29 17:01:15 +0200
commitf14f8c26054b31c8bd23c76091664b26b9ec99a2 (patch)
treec0c29a6daa36f56eba95a3e149b638d18e6efd0d /plugins/cdda
parentf6fd210cfa35363dfd51a38c8cff28e951958278 (diff)
NRG support is disabled by default, can be enabled in cd audio plugin options
Diffstat (limited to 'plugins/cdda')
-rw-r--r--plugins/cdda/cdda.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c
index 14b2485a..a5d0bbfb 100644
--- a/plugins/cdda/cdda.c
+++ b/plugins/cdda/cdda.c
@@ -455,6 +455,9 @@ cda_insert (DB_playItem_t *after, const char *fname) {
}
const char *ext = strrchr (shortname, '.') + 1;
int is_image = ext && (0 == strcmp (ext, "nrg"));
+ if (is_image && !deadbeef->conf_get_int ("cdda.enable_nrg", 0)) {
+ return NULL;
+ }
if (0 == strcmp (ext, "cda")) {
cdio = cdio_open (NULL, DRIVER_UNKNOWN);
@@ -566,7 +569,8 @@ static const char settings_dlg[] =
"property \"Prefer CD-Text over CDDB\" checkbox cdda.prefer_cdtext 1;\n"
"property \"CDDB url (e.g. 'freedb.org')\" entry cdda.freedb.host freedb.org;\n"
"property \"CDDB port number (e.g. '888')\" entry cdda.freedb.port 888;\n"
- "property \"Prefer CDDB protocol over HTTP\" checkbox cdda.protocol 1;"
+ "property \"Prefer CDDB protocol over HTTP\" checkbox cdda.protocol 1;\n"
+ "property \"Enable NRG image support\" checkbox cdda.enable_nrg 0;"
;
// define plugin interface
@@ -577,7 +581,7 @@ static DB_decoder_t plugin = {
.plugin.type = DB_PLUGIN_DECODER,
.plugin.id = "cda",
.plugin.name = "Audio CD player",
- .plugin.descr = "using libcdio, includes .nrg image support",
+ .plugin.descr = "Audio CD plugins using libcdio and libcddb",
.plugin.author = "Viktor Semykin, Alexey Yakovenko",
.plugin.email = "thesame.ml@gmail.com, waker@users.sourceforge.net",
.plugin.website = "http://deadbeef.sf.net",