summaryrefslogtreecommitdiff
path: root/plugins/ffmpeg
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-03-28 20:32:07 +0200
committerGravatar waker <wakeroid@gmail.com>2011-03-28 20:32:07 +0200
commit1d74cc0c7d63de5ca838c36171ca0ebf5dd04272 (patch)
tree3ba0f04f75a8a2e4c78a8daa481efb478802f4e2 /plugins/ffmpeg
parentbd53ff68a03689b9de8e5203bcf313d4b80591e4 (diff)
fix ffmpeg filetype display for streaming media
Diffstat (limited to 'plugins/ffmpeg')
-rw-r--r--plugins/ffmpeg/ffmpeg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index 823f64a1..6872db8a 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -166,19 +166,19 @@ ffmpeg_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
}
if (!strcasecmp (info->codec->name, "alac")) {
- deadbeef->pl_add_meta (it, ":FILETYPE", filetypes[FT_ALAC]);
+ deadbeef->pl_replace_meta (it, ":FILETYPE", filetypes[FT_ALAC]);
}
else if (strcasestr (info->codec->name, "wma")) {
- deadbeef->pl_add_meta (it, ":FILETYPE", filetypes[FT_WMA]);
+ deadbeef->pl_replace_meta (it, ":FILETYPE", filetypes[FT_WMA]);
}
else if (strcasestr (info->codec->name, "ac3")) {
- deadbeef->pl_add_meta (it, ":FILETYPE", filetypes[FT_AC3]);
+ deadbeef->pl_replace_meta (it, ":FILETYPE", filetypes[FT_AC3]);
}
else if (strcasestr (info->codec->name, "amr")) {
- deadbeef->pl_add_meta (it, ":FILETYPE", filetypes[FT_AMR]);
+ deadbeef->pl_replace_meta (it, ":FILETYPE", filetypes[FT_AMR]);
}
else {
- deadbeef->pl_add_meta (it, ":FILETYPE", filetypes[FT_UNKNOWN]);
+ deadbeef->pl_replace_meta (it, ":FILETYPE", filetypes[FT_UNKNOWN]);
}
int bps = av_get_bits_per_sample_format (info->ctx->sample_fmt);