lamemp3enc: Improve debugging a bit

This commit is contained in:
Sebastian Dröge 2009-05-14 12:32:16 +02:00
parent f631890166
commit 98acc9703b

View file

@ -802,8 +802,10 @@ gst_lamemp3enc_setup (GstLameMP3Enc * lame)
if ((retval = lame_init_params (lame->lgf)) >= 0) { if ((retval = lame_init_params (lame->lgf)) >= 0) {
lame->setup = TRUE; lame->setup = TRUE;
/* FIXME: it would be nice to print out the mode here */ /* FIXME: it would be nice to print out the mode here */
GST_INFO ("lame encoder setup (bitrate %d, %d Hz, %d channels)", GST_INFO
lame->bitrate, lame->samplerate, lame->num_channels); ("lame encoder setup (target %s, quality %f, bitrate %d, %d Hz, %d channels)",
(lame->target == LAMEMP3ENC_TARGET_QUALITY) ? "quality" : "bitrate",
lame->quality, lame->bitrate, lame->samplerate, lame->num_channels);
} else { } else {
GST_ERROR_OBJECT (lame, "lame_init_params returned %d", retval); GST_ERROR_OBJECT (lame, "lame_init_params returned %d", retval);
} }