1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

Replace printf with mp_msg.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25402 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-15 01:12:44 +00:00
parent 50fd01dc6f
commit 10ea9291c1

View File

@ -114,20 +114,20 @@ cd_info_get_track(cd_info_t *cd_info, unsigned int track_nb) {
void void
cd_info_debug(cd_info_t *cd_info) { cd_info_debug(cd_info_t *cd_info) {
cd_track_t *current_track; cd_track_t *current_track;
printf("================ CD INFO === start =========\n"); mp_msg(MSGT_DEMUX, MSGL_INFO, "================ CD INFO === start =========\n");
if( cd_info==NULL ) { if( cd_info==NULL ) {
printf("cd_info is NULL\n"); mp_msg(MSGT_DEMUX, MSGL_INFO, "cd_info is NULL\n");
return; return;
} }
printf(" artist=[%s]\n", cd_info->artist); mp_msg(MSGT_DEMUX, MSGL_INFO, " artist=[%s]\n", cd_info->artist);
printf(" album=[%s]\n", cd_info->album); mp_msg(MSGT_DEMUX, MSGL_INFO, " album=[%s]\n", cd_info->album);
printf(" genre=[%s]\n", cd_info->genre); mp_msg(MSGT_DEMUX, MSGL_INFO, " genre=[%s]\n", cd_info->genre);
printf(" nb_tracks=%d\n", cd_info->nb_tracks); mp_msg(MSGT_DEMUX, MSGL_INFO, " nb_tracks=%d\n", cd_info->nb_tracks);
printf(" length= %2d:%02d.%02d\n", cd_info->min, cd_info->sec, cd_info->msec); mp_msg(MSGT_DEMUX, MSGL_INFO, " length= %2d:%02d.%02d\n", cd_info->min, cd_info->sec, cd_info->msec);
current_track = cd_info->first; current_track = cd_info->first;
while( current_track!=NULL ) { while( current_track!=NULL ) {
printf(" #%2d %2d:%02d.%02d @ %7ld\t[%s] \n", current_track->track_nb, current_track->min, current_track->sec, current_track->msec, current_track->frame_begin, current_track->name); mp_msg(MSGT_DEMUX, MSGL_INFO, " #%2d %2d:%02d.%02d @ %7ld\t[%s] \n", current_track->track_nb, current_track->min, current_track->sec, current_track->msec, current_track->frame_begin, current_track->name);
current_track = current_track->next; current_track = current_track->next;
} }
printf("================ CD INFO === end =========\n"); mp_msg(MSGT_DEMUX, MSGL_INFO, "================ CD INFO === end =========\n");
} }