summaryrefslogtreecommitdiff
path: root/plugins/dca
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-27 22:27:11 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-27 22:27:11 +0200
commit63f83233f6bbfd3b7add1cc3abcb4bf75b7f5912 (patch)
tree6faf83e38503e0a330819ae8d80f04c6dee54dab /plugins/dca
parentd6edc30d31c904a70286fd3fe07eaa9c0a5bb018 (diff)
fixed mp3 filetype for streamed radio;
removed filetypes ptr in DB_decoder_t
Diffstat (limited to 'plugins/dca')
-rw-r--r--plugins/dca/dcaplug.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/dca/dcaplug.c b/plugins/dca/dcaplug.c
index af0f5e5e..6262d763 100644
--- a/plugins/dca/dcaplug.c
+++ b/plugins/dca/dcaplug.c
@@ -51,7 +51,6 @@
#define trace(fmt,...)
static const char * exts[] = { "wav", "dts", "cpt", NULL };
-static const char *filetypes[] = { "DTS WAV", "DTS", NULL };
enum {
FT_DTSWAV,
@@ -640,13 +639,13 @@ dts_insert (DB_playItem_t *after, const char *fname) {
double dur = -1;
// WAV format
if ((offset = dts_open_wav (fp, &fmt, &totalsamples)) != -1) {
- filetype = filetypes[FT_DTSWAV];
+ filetype = "DTS WAV";
dur = (float)totalsamples / fmt.nSamplesPerSec;
}
else {
// try raw DTS @ 48KHz
offset = 0;
- filetype = filetypes[FT_DTS];
+ filetype = "DTS";
//fprintf (stderr, "dca: unrecognized format in %s\n", fname);
//goto error;
}
@@ -760,7 +759,6 @@ static DB_decoder_t plugin = {
.seek_sample = dts_seek_sample,
.insert = dts_insert,
.exts = exts,
- .filetypes = filetypes
};
DB_plugin_t *