From 98acc9703b957827afbb7bab81c57c671e02e74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 14 May 2009 12:32:16 +0200 Subject: [PATCH] lamemp3enc: Improve debugging a bit --- ext/lame/gstlamemp3enc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c index 15a1bead58..38b3b635f2 100644 --- a/ext/lame/gstlamemp3enc.c +++ b/ext/lame/gstlamemp3enc.c @@ -802,8 +802,10 @@ gst_lamemp3enc_setup (GstLameMP3Enc * lame) if ((retval = lame_init_params (lame->lgf)) >= 0) { lame->setup = TRUE; /* FIXME: it would be nice to print out the mode here */ - GST_INFO ("lame encoder setup (bitrate %d, %d Hz, %d channels)", - lame->bitrate, lame->samplerate, lame->num_channels); + GST_INFO + ("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 { GST_ERROR_OBJECT (lame, "lame_init_params returned %d", retval); }