summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorphelin <phelin>2008-01-10 23:36:06 +0000
committerphelin <phelin>2008-01-10 23:36:06 +0000
commitcdeaf873969d39c33faba6ef7ed86b8bfec5173c (patch)
tree07f960eb3a3aaec87ee6b82e326d7c44c55ba84f /device.c
parent3d2752b849a7cd8bee622b9e7c8aa9f476034002 (diff)
downloadxineliboutput-cdeaf873969d39c33faba6ef7ed86b8bfec5173c.tar.gz
xineliboutput-cdeaf873969d39c33faba6ef7ed86b8bfec5173c.tar.bz2
Add setup menu for Media player. Options for enabling or disabling metainfo types,
metainfo scanner and metainfo caching.
Diffstat (limited to 'device.c')
-rw-r--r--device.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/device.c b/device.c
index 16d57c11..c1b49be3 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c,v 1.47 2008-01-06 13:01:12 phintuka Exp $
+ * $Id: device.c,v 1.48 2008-01-10 23:36:06 phelin Exp $
*
*/
@@ -1660,7 +1660,15 @@ void cXinelibDevice::EnsureDvdSpuTrack(void)
const char *cXinelibDevice::GetMetaInfo(eMetainfoType Type)
{
if(Type >= 0 && Type < mi_Count)
- return m_MetaInfo[Type];
+ if ( Type == 0 || Type > 3 ||
+ (Type == 1 && xc.playlist_tracknumber == 1) ||
+ (Type == 2 && xc.playlist_artist == 1) ||
+ (Type == 3 && xc.playlist_album == 1)) {
+ return m_MetaInfo[Type];
+ }
+ else {
+ return "";
+ }
LOGMSG("cXinelibDevice::GetMetaInfo: unknown metainfo type");
return "";