summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-12-24 16:22:35 +0000
committerphintuka <phintuka>2006-12-24 16:22:35 +0000
commitda92a5f564e964729cce1e94acc3563d1f60cbe8 (patch)
treebfe12ce71c9674246961f0906e296649929e7b6c
parent43cc5c8c98b3b16c5db61a395195a09ffb0db676 (diff)
downloadxineliboutput-da92a5f564e964729cce1e94acc3563d1f60cbe8.tar.gz
xineliboutput-da92a5f564e964729cce1e94acc3563d1f60cbe8.tar.bz2
DVD title number
-rw-r--r--device.h5
-rw-r--r--frontend.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/device.h b/device.h
index 4fe4e839..60f55127 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.17 2006-12-20 09:52:27 phintuka Exp $
+ * $Id: device.h,v 1.18 2006-12-24 16:22:35 phintuka Exp $
*
*/
@@ -25,7 +25,8 @@ typedef enum {
miTrack = 1,
miArtist = 2,
miAlbum = 3,
- mi_Count = 4
+ miDvdTitleNo = 4,
+ mi_Count = 5
} eMetainfoType;
#define MAX_METAINFO_LEN 63
diff --git a/frontend.c b/frontend.c
index fd30a378..2c038a97 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.24 2006-12-23 20:22:30 phintuka Exp $
+ * $Id: frontend.c,v 1.25 2006-12-24 16:22:35 phintuka Exp $
*
*/
@@ -163,6 +163,12 @@ void cXinelibThread::InfoHandler(const char *info)
cXinelibDevice::Instance().SetMetaInfo(miTitle, map);
}
+ else if(!strncmp(info, "DVDTITLE ", 9)) {
+ map += 9;
+ while(*map == ' ') map++;
+ cXinelibDevice::Instance().SetMetaInfo(miDvdTitleNo, map);
+ }
+
free(pmap);
}