diff options
-rw-r--r-- | menu.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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)); |