Mercurial > mplayer.hg
diff libmpdemux/cddb.c @ 18237:4231482179b6
Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
author | reynaldo |
---|---|
date | Mon, 24 Apr 2006 07:20:34 +0000 |
parents | f72bc5754209 |
children | d2d9d011203f |
line wrap: on
line diff
--- a/libmpdemux/cddb.c Mon Apr 24 06:28:45 2006 +0000 +++ b/libmpdemux/cddb.c Mon Apr 24 07:20:34 2006 +0000 @@ -222,7 +222,7 @@ int cdd_identify(const char *dev) { cdtoc_last_track = 0; - if (identify) + if (mp_msg_test(MSGT_IDENTIFY, MSGL_INFO)) { int i, min, sec, frame; cdtoc_last_track = read_toc(dev); @@ -238,7 +238,7 @@ frame -= sec * 75; min = sec / 60; sec -= min * 60; - mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_CDDA_TRACK_%d_MSF=%02d:%02d:%02d\n", i, min, sec, frame); + mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CDDA_TRACK_%d_MSF=%02d:%02d:%02d\n", i, min, sec, frame); } } return cdtoc_last_track;