summaryrefslogtreecommitdiff
path: root/plugins/ffmpeg/ffmpeg.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-21 20:46:24 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-21 20:46:24 +0100
commit0bc0bc60593c47ec76f2b4b6a62f393ae9490588 (patch)
treed90ebc991d4ecd1d7e29c7043f998f17df88b268 /plugins/ffmpeg/ffmpeg.c
parent850552d6b5bad71db6bdfd11d4de197224d9d3b0 (diff)
added TTA to ffmpeg filetypes
Diffstat (limited to 'plugins/ffmpeg/ffmpeg.c')
-rw-r--r--plugins/ffmpeg/ffmpeg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index 1cc6fbce..ee723238 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -55,7 +55,7 @@
static DB_decoder_t plugin;
static DB_functions_t *deadbeef;
-static const char * exts[] = { "m4a", "mpc", "mp+", "mpp", "wma", "shn", "aa3", "oma", "ac3", "vqf", NULL };
+static const char * exts[] = { "m4a", "mpc", "mp+", "mpp", "wma", "shn", "aa3", "oma", "ac3", "vqf", "tta", NULL };
enum {
FT_M4A = 0,
@@ -64,10 +64,11 @@ enum {
FT_SHORTEN = 3,
FT_ATRAC3 = 4,
FT_VQF = 5,
+ FT_TTA = 6,
FT_UNKNOWN = 6
};
-static const char *filetypes[] = { "M4A", "MusePack", "WMA", "Shorten", "atrac3", "VQF", "FFMPEG", NULL };
+static const char *filetypes[] = { "M4A", "MusePack", "WMA", "Shorten", "atrac3", "VQF", "TTA", "FFMPEG", NULL };
#define FF_PROTOCOL_NAME "deadbeef"
@@ -458,6 +459,9 @@ ffmpeg_insert (DB_playItem_t *after, const char *fname) {
else if (!strcasecmp (ext, "vqf")) {
filetype = filetypes[FT_VQF];
}
+ else if (!strcasecmp (ext, "tta")) {
+ filetype = filetypes[FT_TTA];
+ }
else {
filetype = filetypes[FT_UNKNOWN];
}