Johannes Weißl
2011-04-06 06:48:41 UTC
---
mikmod.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/mikmod.c b/mikmod.c
index f88eec6..658b259 100644
--- a/mikmod.c
+++ b/mikmod.c
@@ -144,7 +144,9 @@ static long mik_bitrate(struct input_plugin_data *ip_data)
static char *mik_codec(struct input_plugin_data *ip_data)
{
- return NULL;
+ struct mik_private *priv = ip_data->private;
+ const char *codec = priv->file->modtype;
+ return (codec && codec[0]) ? xstrdup(codec) : NULL;
}
const struct input_plugin_ops ip_ops = {
mikmod.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/mikmod.c b/mikmod.c
index f88eec6..658b259 100644
--- a/mikmod.c
+++ b/mikmod.c
@@ -144,7 +144,9 @@ static long mik_bitrate(struct input_plugin_data *ip_data)
static char *mik_codec(struct input_plugin_data *ip_data)
{
- return NULL;
+ struct mik_private *priv = ip_data->private;
+ const char *codec = priv->file->modtype;
+ return (codec && codec[0]) ? xstrdup(codec) : NULL;
}
const struct input_plugin_ops ip_ops = {
--
1.7.4.1
1.7.4.1