summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-12-20 09:52:27 +0000
committerphintuka <phintuka>2006-12-20 09:52:27 +0000
commite46704b696a35238a4e43648559138e7f4989e4b (patch)
treeb8ee30ddd81c521fb04f21e57075f4bdc1eb37db
parent23bf8557759270eff13ef8049fb3948206d6baa3 (diff)
downloadxineliboutput-e46704b696a35238a4e43648559138e7f4989e4b.tar.gz
xineliboutput-e46704b696a35238a4e43648559138e7f4989e4b.tar.bz2
Added INFO TITLE
-rw-r--r--device.h11
-rw-r--r--frontend.c8
2 files changed, 13 insertions, 6 deletions
diff --git a/device.h b/device.h
index f82cea7b..4fe4e839 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h,v 1.16 2006-12-17 22:09:47 phintuka Exp $
+ * $Id: device.h,v 1.17 2006-12-20 09:52:27 phintuka Exp $
*
*/
@@ -21,10 +21,11 @@ class cChannel;
class cFunctor;
typedef enum {
- miTrack = 0,
- miArtist = 1,
- miAlbum = 2,
- mi_Count = 3
+ miTitle = 0,
+ miTrack = 1,
+ miArtist = 2,
+ miAlbum = 3,
+ mi_Count = 4
} eMetainfoType;
#define MAX_METAINFO_LEN 63
diff --git a/frontend.c b/frontend.c
index 364c9601..c55c6428 100644
--- a/frontend.c
+++ b/frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend.c,v 1.22 2006-12-19 16:33:52 phintuka Exp $
+ * $Id: frontend.c,v 1.23 2006-12-20 09:52:27 phintuka Exp $
*
*/
@@ -155,6 +155,12 @@ void cXinelibThread::InfoHandler(const char *info)
map = end+1;
}
}
+
+ else if(!strncmp(info, "TITLE ", 6)) {
+ map += 6;
+ while(*map == ' ') map++;
+ cXinelibDevice::Instance().SetMetaInfo(miTitle, map);
+ }
free(pmap);
}