summaryrefslogtreecommitdiffstats
path: root/dec_audio.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-15 23:16:32 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-15 23:16:32 +0000
commit6ca119b6241657ed08a88c3e7f172a14ff1a74ff (patch)
treee019bda8afe0c337931bf6d4dcd429de289c4dd0 /dec_audio.c
parent73158ed8707fa48bfb648249901d4142ea585b60 (diff)
downloadmpv-6ca119b6241657ed08a88c3e7f172a14ff1a74ff.tar.bz2
mpv-6ca119b6241657ed08a88c3e7f172a14ff1a74ff.tar.xz
printf to mp_msg by Anders Rune Jensen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5119 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_audio.c')
-rw-r--r--dec_audio.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/dec_audio.c b/dec_audio.c
index fd2073ab72..af51793e45 100644
--- a/dec_audio.c
+++ b/dec_audio.c
@@ -174,7 +174,7 @@ static void mad_sync(sh_audio_t* sh_audio, struct mad_stream* ms)
}
if (skipped)
{
- printf("Audio synced, skipped bytes: %d\n", skipped);
+ mp_msg(MSGT_DECAUDIO, MSGL_INFO, "mad: audio synced, skipped bytes: %d\n", skipped);
// ms->skiplen += skipped;
// printf("skiplen: %d (skipped: %d)\n", ms->skiplen, skipped);
@@ -199,7 +199,7 @@ static void mad_sync(sh_audio_t* sh_audio, struct mad_stream* ms)
len = mad_stream_sync(&ms);
if (len == -1)
{
- printf("Mad sync failed\n");
+ mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Mad sync failed\n");
}
#endif
}
@@ -467,7 +467,7 @@ case AFM_FFMPEG:
#ifdef USE_LIBMAD
case AFM_MAD:
- printf(__FILE__ ":%d:mad: setting minimum outputsize\n", __LINE__);
+ mp_msg(MSGT_DECVIDEO, MSGL_V, "mad: setting minimum outputsize\n");
sh_audio->audio_out_minsize=4608;
if(sh_audio->audio_in_minsize<MAD_SINGLE_BUFFER_SIZE) sh_audio->audio_in_minsize=MAD_SINGLE_BUFFER_SIZE;
sh_audio->a_in_buffer_size=sh_audio->audio_in_minsize;
@@ -882,11 +882,11 @@ case AFM_VORBIS: {
{
printf("%s %s %s (%s)\n", mad_version, mad_copyright, mad_author, mad_build);
- printf(__FILE__ ":%d:mad: initialising\n", __LINE__);
+ mp_msg(MSGT_DECVIDEO, MSGL_V, "mad: initialising\n");
mad_frame_init(&mad_frame);
mad_stream_init(&mad_stream);
- printf(__FILE__ ":%d:mad: preparing buffer\n", __LINE__);
+ mp_msg(MSGT_DECVIDEO, MSGL_V, "mad: preparing buffer\n");
mad_prepare_buffer(sh_audio, &mad_stream, sh_audio->a_in_buffer_size);
mad_stream_buffer(&mad_stream, (unsigned char*)(sh_audio->a_in_buffer), sh_audio->a_in_buffer_len);
// mad_stream_sync(&mad_stream);
@@ -895,12 +895,12 @@ case AFM_VORBIS: {
if(mad_frame_decode(&mad_frame, &mad_stream) == 0)
{
- printf(__FILE__ ":%d:mad: post processing buffer\n", __LINE__);
+ mp_msg(MSGT_DECVIDEO, MSGL_V, "mad: post processing buffer\n");
mad_postprocess_buffer(sh_audio, &mad_stream);
}
else
{
- printf(__FILE__ ":%d:mad: frame decoding failed\n", __LINE__);
+ mp_msg(MSGT_DECVIDEO, MSGL_V, "mad: frame decoding failed\n");
mad_print_error(&mad_stream);
}
@@ -926,7 +926,7 @@ case AFM_VORBIS: {
sh_audio->samplerate=mad_frame.header.sfreq;
#endif
sh_audio->i_bps=mad_frame.header.bitrate;
- printf(__FILE__ ":%d:mad: continuing\n", __LINE__);
+ mp_msg(MSGT_DECVIDEO, MSGL_V, "mad: continuing\n");
break;
}
#endif
@@ -1318,7 +1318,7 @@ int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen){
}
else
{
- printf(__FILE__ ":%d:mad: frame decoding failed (error: %d)\n", __LINE__,
+ mp_msg(MSGT_DECVIDEO, MSGL_ERR, "mad: frame decoding failed (error: %d)\n",
mad_stream.error);
mad_print_error(&mad_stream);
}