summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-27 17:25:41 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-27 17:25:41 +0000
commita33158d60d04f21ee10881ccc5cd295e1aae5bca (patch)
tree021a6f021ecf99a2deebe6d17cb1574dc97673a5 /libmpcodecs
parente2c173be10fa87ef6df3049d80fcca80a2d1a174 (diff)
downloadmpv-a33158d60d04f21ee10881ccc5cd295e1aae5bca.tar.bz2
mpv-a33158d60d04f21ee10881ccc5cd295e1aae5bca.tar.xz
Convert printfs in aviprint.c to mp_msg and give the information printing
functions in this file a verbosity_level parameter. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17978 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_acm.c6
-rw-r--r--libmpcodecs/ad_twin.c6
-rw-r--r--libmpcodecs/vd_vfw.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/libmpcodecs/ad_acm.c b/libmpcodecs/ad_acm.c
index 7e60805fb2..73c5c11ca8 100644
--- a/libmpcodecs/ad_acm.c
+++ b/libmpcodecs/ad_acm.c
@@ -40,7 +40,7 @@ static int init(sh_audio_t *sh_audio)
return 1;
}
-extern void print_wave_header(WAVEFORMATEX *h);
+extern void print_wave_header(WAVEFORMATEX *h, int verbose_level);
static int preinit(sh_audio_t *sh_audio)
{
@@ -77,9 +77,9 @@ static int preinit(sh_audio_t *sh_audio)
if ( mp_msg_test(MSGT_DECAUDIO,MSGL_V) )
{
mp_msg(MSGT_DECAUDIO, MSGL_V, "Input format:\n");
- print_wave_header(in_fmt);
+ print_wave_header(in_fmt, MSGL_V);
mp_msg(MSGT_DECAUDIO, MSGL_V, "Output format:\n");
- print_wave_header(priv->o_wf);
+ print_wave_header(priv->o_wf, MSGL_V);
}
MSACM_RegisterDriver((const char *)sh_audio->codec->dll, in_fmt->wFormatTag, 0);
diff --git a/libmpcodecs/ad_twin.c b/libmpcodecs/ad_twin.c
index c01d90cd27..fc04bfa424 100644
--- a/libmpcodecs/ad_twin.c
+++ b/libmpcodecs/ad_twin.c
@@ -90,7 +90,7 @@ static int load_dll( char *libname )
TvqGetNumFixedBitsPerFrame;
}
-extern void print_wave_header(WAVEFORMATEX *h);
+extern void print_wave_header(WAVEFORMATEX *h, int verbose_level);
static int init_vqf_audio_codec(sh_audio_t *sh_audio){
WAVEFORMATEX *in_fmt=sh_audio->wf;
vqf_priv_t*priv=sh_audio->context;
@@ -113,9 +113,9 @@ static int init_vqf_audio_codec(sh_audio_t *sh_audio){
if( mp_msg_test(MSGT_DECAUDIO,MSGL_V) )
{
mp_msg(MSGT_DECAUDIO, MSGL_V, "Input format:\n");
- print_wave_header(in_fmt);
+ print_wave_header(in_fmt, MSGL_V);
mp_msg(MSGT_DECAUDIO, MSGL_V, "Output fmt:\n");
- print_wave_header(&priv->o_wf);
+ print_wave_header(&priv->o_wf, MSGL_V);
}
memcpy(&priv->hi,&in_fmt[1],sizeof(headerInfo));
if((ver=TvqInitialize(&priv->hi,&priv->index,0))){
diff --git a/libmpcodecs/vd_vfw.c b/libmpcodecs/vd_vfw.c
index eb8d304a29..bbb70b05d2 100644
--- a/libmpcodecs/vd_vfw.c
+++ b/libmpcodecs/vd_vfw.c
@@ -138,7 +138,7 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
return CONTROL_UNKNOWN;
}
-extern void print_video_header(BITMAPINFOHEADER *h);
+extern void print_video_header(BITMAPINFOHEADER *h, int verbose_level);
// init driver
static int init(sh_video_t *sh){
@@ -241,9 +241,9 @@ static int init(sh_video_t *sh){
set_csp(priv->o_bih,sh->codec->outfmt[sh->outfmtidx]);
mp_msg(MSGT_WIN32, MSGL_V, "Input format:\n");
- if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_video_header(sh->bih);
+ if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_video_header(sh->bih,MSGL_V);
mp_msg(MSGT_WIN32, MSGL_V, "Output format:\n");
- if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_video_header(priv->o_bih);
+ if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_video_header(priv->o_bih,MSGL_V);
// set postprocessing level in xvid/divx4 .dll
ICSendMessage(priv->handle, ICM_USER+80, (long)(&divx_quality), 0);