From 541b4795ce5ea0d48bcabee0e341aa4143a2f85a Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 29 Aug 2012 19:23:15 +0000 Subject: Add title and track number to audio CD playlist items --- media_player.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/media_player.c b/media_player.c index 7ab5529c..1826803f 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.92 2012-03-19 11:07:52 phintuka Exp $ + * $Id: media_player.c,v 1.93 2012-08-29 19:23:15 phintuka Exp $ * */ @@ -248,8 +248,11 @@ void cXinelibPlayer::UpdateNumTracks(void) if(m_Playlist.Count() == 1 && !strcmp("cdda:/", m_Playlist.First()->Filename)) { int count = m_Dev->PlayFileCtrl("GETAUTOPLAYSIZE CD", 10000); if(count>0) { - for(int i=0; iTitle = cString::sprintf("Track %d", i + 1); + m_Playlist.Last()->Tracknumber = cString::sprintf("%d/%d", i + 1, count); + } m_Playlist.Del(m_Playlist.First()); } } -- cgit v1.2.3