Discussion:
[PATCH 2/2] mikmod: return codec name
Johannes Weißl
2011-04-06 06:48:41 UTC
Permalink
---
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
Gregory Petrosyan
2011-04-06 07:12:26 UTC
Permalink
---
mikmod.c | 36 ++++++++++++++----------------------
1 files changed, 14 insertions(+), 22 deletions(-)
Thanks, merged to maint and master!

Gregory
Gregory Petrosyan
2011-04-06 07:12:56 UTC
Permalink
Post by Johannes Weißl
---
mikmod.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Thanks, merged to master!

Gregory

Loading...