[vlc-devel] commit: fix cdda playlists for CDs that have more than 9 titles. ( Timo Paulssen )

git version control git at videolan.org
Fri Jan 16 18:09:35 CET 2009


vlc | branch: master | Timo Paulssen <timonator at perpetuum-immobile.de> | Wed Jan 14 22:02:29 2009 +0100| [f60496a6350f4503ff3389c4052f5733b42b035c] | committer: Rémi Denis-Courmont 

fix cdda playlists for CDs that have more than 9 titles.

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f60496a6350f4503ff3389c4052f5733b42b035c
---

 modules/access/cdda.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index a26c844..1a0bae9 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -432,7 +432,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
             psz_last = NULL;
 
         /* Define a "default name" */
-        if( asprintf( &psz_name, _("Audio CD - Track %i"), (i+1) ) == -1 )
+        if( asprintf( &psz_name, _("Audio CD - Track %02i"), (i+1) ) == -1 )
             psz_name = NULL;
 
         /* Create playlist items */




More information about the vlc-devel mailing list