diff options
-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); } |