[vlc-commits] CDDB: display CDDB ID in the right format

Jean-Baptiste Kempf git at videolan.org
Mon Jan 5 17:37:57 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan  5 17:36:15 2015 +0100| [2d61d6fb7b9c4dfb6d278df2ccb994c084fb6c01] | committer: Jean-Baptiste Kempf

CDDB: display CDDB ID in the right format

Aka a 8 digit hexa number, as used in search engines like
http://www.freedb.org/freedb_discid_check.php

Ref #4370

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

 modules/access/cdda.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index ad1cb07..34623fc 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -397,7 +397,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
     cddb_disc_t *p_disc = GetCDDBInfo( p_access, i_titles, p_sys->p_sectors );
     if( p_disc )
     {
-        msg_Dbg( p_access, "Disc ID: %u", cddb_disc_get_discid( p_disc ) );
+        msg_Dbg( p_access, "Disc ID: %08x", cddb_disc_get_discid( p_disc ) );
         psz_album = cddb_disc_get_title( p_disc );
         psz_genre = cddb_disc_get_genre( p_disc );
 



More information about the vlc-commits mailing list