mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
Fix FIXME mp_msg levels and targets
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21637 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
+10
-10
@@ -73,7 +73,7 @@ static int pass;
|
||||
|
||||
static int bind_lame(audio_encoder_t *encoder, muxer_stream_t *mux_a)
|
||||
{
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_MP3AudioSelected);
|
||||
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MP3AudioSelected);
|
||||
mux_a->h.dwSampleSize=0; // VBR
|
||||
mux_a->h.dwRate=encoder->params.sample_rate;
|
||||
mux_a->h.dwScale=encoder->params.samples_per_frame; // samples/frame
|
||||
@@ -144,7 +144,7 @@ static void fixup(audio_encoder_t *encoder)
|
||||
encoder->stream->h.dwRate=encoder->stream->wf->nAvgBytesPerSec;
|
||||
encoder->stream->h.dwScale=1;
|
||||
encoder->stream->wf->nBlockAlign=1;
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CBRAudioByterate,
|
||||
mp_msg(MSGT_MENCODER, MSGL_V, MSGTR_CBRAudioByterate,
|
||||
encoder->stream->h.dwRate,((MPEGLAYER3WAVEFORMAT*)(encoder->stream->wf))->nBlockSize);
|
||||
}
|
||||
}
|
||||
@@ -175,14 +175,14 @@ int mpae_init_lame(audio_encoder_t *encoder)
|
||||
if(lame_param_mode>=0) lame_set_mode(lame,lame_param_mode); // j-st
|
||||
if(lame_param_ratio>0) lame_set_compression_ratio(lame,lame_param_ratio);
|
||||
if(lame_param_scale>0) {
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_SettingAudioInputGain, lame_param_scale);
|
||||
mp_msg(MSGT_MENCODER, MSGL_V, MSGTR_SettingAudioInputGain, lame_param_scale);
|
||||
lame_set_scale(lame,lame_param_scale);
|
||||
}
|
||||
if(lame_param_lowpassfreq>=-1) lame_set_lowpassfreq(lame,lame_param_lowpassfreq);
|
||||
if(lame_param_highpassfreq>=-1) lame_set_highpassfreq(lame,lame_param_highpassfreq);
|
||||
#ifdef HAVE_MP3LAME_PRESET
|
||||
if(lame_param_preset != NULL) {
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LamePresetEquals,lame_param_preset);
|
||||
mp_msg(MSGT_MENCODER, MSGL_V, MSGTR_LamePresetEquals,lame_param_preset);
|
||||
if(lame_presets_set(lame,lame_param_fast, (lame_param_vbr==0), lame_param_preset) < 0)
|
||||
return 0;
|
||||
}
|
||||
@@ -212,7 +212,7 @@ static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_
|
||||
int mono = 0;
|
||||
|
||||
if (strcmp(preset_name, "help") == 0) {
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LameVersion, get_lame_version(), get_lame_url());
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LameVersion, get_lame_version(), get_lame_url());
|
||||
lame_presets_longinfo_dm(stderr);
|
||||
return -1;
|
||||
}
|
||||
@@ -308,14 +308,14 @@ static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_
|
||||
|
||||
}
|
||||
else {
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LameVersion, get_lame_version(), get_lame_url());
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_InvalidBitrateForLamePreset);
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LameVersion, get_lame_version(), get_lame_url());
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_InvalidBitrateForLamePreset);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LameVersion, get_lame_version(), get_lame_url());
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_InvalidLamePresetOptions);
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LameVersion, get_lame_version(), get_lame_url());
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_InvalidLamePresetOptions);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
@@ -325,6 +325,6 @@ static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_
|
||||
taken out of presets_longinfo_dm in lame-3.93.1/frontend/parse.c and modified */
|
||||
static void lame_presets_longinfo_dm ( FILE* msgfp )
|
||||
{
|
||||
mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LamePresetsLongInfo);
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LamePresetsLongInfo);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user