diff options
author | 2011-04-27 22:27:11 +0200 | |
---|---|---|
committer | 2011-04-27 22:27:11 +0200 | |
commit | 63f83233f6bbfd3b7add1cc3abcb4bf75b7f5912 (patch) | |
tree | 6faf83e38503e0a330819ae8d80f04c6dee54dab /plugins/aac/aac.c | |
parent | d6edc30d31c904a70286fd3fe07eaa9c0a5bb018 (diff) |
fixed mp3 filetype for streamed radio;
removed filetypes ptr in DB_decoder_t
Diffstat (limited to 'plugins/aac/aac.c')
-rw-r--r-- | plugins/aac/aac.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 6e52c53a..95563f51 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -1175,7 +1175,7 @@ aac_insert (DB_playItem_t *after, const char *fname) { if (fp->vfs->is_streaming ()) { trace ("streaming aac (%s)\n", fname); - ftype = plugin.filetypes[0]; + ftype = "RAW AAC"; } else { int skip = deadbeef->junk_get_leading_size (fp); @@ -1206,10 +1206,10 @@ aac_insert (DB_playItem_t *after, const char *fname) { return NULL; } else if (res == 0) { - ftype = plugin.filetypes[1]; + ftype = "MP4 AAC"; } else if (res == 1) { - ftype = plugin.filetypes[0]; + ftype = "RAW AAC"; } } @@ -1310,7 +1310,6 @@ aac_insert (DB_playItem_t *after, const char *fname) { } static const char * exts[] = { "aac", "mp4", "m4a", NULL }; -static const char *filetypes[] = { "RAW AAC", "MP4 AAC", NULL }; // define plugin interface static DB_decoder_t plugin = { @@ -1355,7 +1354,6 @@ static DB_decoder_t plugin = { #else #endif .exts = exts, - .filetypes = filetypes }; DB_plugin_t * |