diff options
author | phintuka <phintuka> | 2006-12-20 09:52:27 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-12-20 09:52:27 +0000 |
commit | e46704b696a35238a4e43648559138e7f4989e4b (patch) | |
tree | b8ee30ddd81c521fb04f21e57075f4bdc1eb37db | |
parent | 23bf8557759270eff13ef8049fb3948206d6baa3 (diff) | |
download | xineliboutput-e46704b696a35238a4e43648559138e7f4989e4b.tar.gz xineliboutput-e46704b696a35238a4e43648559138e7f4989e4b.tar.bz2 |
Added INFO TITLE
-rw-r--r-- | device.h | 11 | ||||
-rw-r--r-- | frontend.c | 8 |
2 files changed, 13 insertions, 6 deletions
@@ -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 @@ -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); } |