summaryrefslogtreecommitdiff
path: root/plugins/ffmpeg
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-29 15:33:03 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-29 15:33:03 +0200
commit8b2d4a30d153c7064edc3bd4236526ab35bcf05c (patch)
tree117f462469c77d4dcab20cdd9d6f87e2955794c7 /plugins/ffmpeg
parentb44c5b8cf3ac549a5e7de32217f6f45769019033 (diff)
fixed ac3 filetype detection in ffmpeg plugin
Diffstat (limited to 'plugins/ffmpeg')
-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 a0996492..e44b38f6 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -62,10 +62,11 @@ enum {
FT_WMA = 1,
FT_ATRAC3 = 2,
FT_VQF = 3,
- FT_UNKNOWN = 4
+ FT_AC3 = 4,
+ FT_UNKNOWN = 5
};
-static const char *filetypes[] = { "ALAC", "WMA", "atrac3", "VQF", "FFMPEG (unknown)", NULL };
+static const char *filetypes[] = { "ALAC", "WMA", "ATRAC3", "VQF", "AC3", "FFMPEG (unknown)", NULL };
#define FF_PROTOCOL_NAME "deadbeef"
@@ -165,6 +166,9 @@ ffmpeg_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
else if (strcasestr (info->codec->name, "wma")) {
it->filetype = filetypes[FT_WMA];
}
+ else if (strcasestr (info->codec->name, "ac3")) {
+ it->filetype = filetypes[FT_AC3];
+ }
else {
it->filetype = filetypes[FT_UNKNOWN];
}