[MPlayer-cvslog] r25402 - trunk/stream/cdinfo.c
ulion
subversion at mplayerhq.hu
Sat Dec 15 02:12:44 CET 2007
Author: ulion
Date: Sat Dec 15 02:12:44 2007
New Revision: 25402
Log:
Replace printf with mp_msg.
Modified:
trunk/stream/cdinfo.c
Modified: trunk/stream/cdinfo.c
==============================================================================
--- trunk/stream/cdinfo.c (original)
+++ trunk/stream/cdinfo.c Sat Dec 15 02:12:44 2007
@@ -114,20 +114,20 @@ cd_info_get_track(cd_info_t *cd_info, un
void
cd_info_debug(cd_info_t *cd_info) {
cd_track_t *current_track;
- printf("================ CD INFO === start =========\n");
+ mp_msg(MSGT_DEMUX, MSGL_INFO, "================ CD INFO === start =========\n");
if( cd_info==NULL ) {
- printf("cd_info is NULL\n");
+ mp_msg(MSGT_DEMUX, MSGL_INFO, "cd_info is NULL\n");
return;
}
- printf(" artist=[%s]\n", cd_info->artist);
- printf(" album=[%s]\n", cd_info->album);
- printf(" genre=[%s]\n", cd_info->genre);
- printf(" 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, " artist=[%s]\n", cd_info->artist);
+ mp_msg(MSGT_DEMUX, MSGL_INFO, " album=[%s]\n", cd_info->album);
+ mp_msg(MSGT_DEMUX, MSGL_INFO, " genre=[%s]\n", cd_info->genre);
+ mp_msg(MSGT_DEMUX, MSGL_INFO, " nb_tracks=%d\n", cd_info->nb_tracks);
+ 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;
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;
}
- printf("================ CD INFO === end =========\n");
+ mp_msg(MSGT_DEMUX, MSGL_INFO, "================ CD INFO === end =========\n");
}
More information about the MPlayer-cvslog
mailing list