From 126560141bec3c3d0125bdd986f6fdec4a624f2e Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 23 Oct 2006 19:15:19 +0000 Subject: DVD spu track api change in device.h --- menu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/menu.c b/menu.c index 5937e67f..cbf52c04 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: menu.c,v 1.20 2006-10-18 21:28:05 phintuka Exp $ + * $Id: menu.c,v 1.21 2006-10-23 19:15:19 phintuka Exp $ * */ @@ -439,10 +439,11 @@ cDvdSpuTrackSelect::cDvdSpuTrackSelect(void) : int current = cXinelibDevice::Instance().GetCurrentDvdSpuTrack(); Add(new cOsdItem("None", osUser1)); while(count && id < 64) { - if(cXinelibDevice::Instance().HasDvdSpuTrack(id)) { + const tTrackId *track = cXinelibDevice::Instance().GetDvdSpuTrack(id); + if(track) { char name[64]; - if(cXinelibDevice::Instance().GetDvdSpuLang(id)) - sprintf(name, "Track %d: %s", id, cXinelibDevice::Instance().GetDvdSpuLang(id)); + if(track->language[0]) + sprintf(name, "Track %d: %s", id, track->language); else sprintf(name, "Track %d", id); Add(new cOsdItem(name, osUser1)); -- cgit v1.2.3