x264enc: Add some more debug info

This commit is contained in:
Robert Swain 2010-07-22 11:53:04 +02:00
parent b27ce43ab8
commit 3554c95548

View file

@ -1015,13 +1015,16 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
encoder->x264param.i_timebase_den = 1000000000; encoder->x264param.i_timebase_den = 1000000000;
#endif #endif
/* apply user set properties */ /* apply option-string property */
if (encoder->option_string_prop && encoder->option_string_prop->len if (encoder->option_string_prop && encoder->option_string_prop->len) {
&& gst_x264_enc_parse_options (encoder, GST_DEBUG_OBJECT (encoder, "Applying option-string: %s",
encoder->option_string_prop->str);
if (gst_x264_enc_parse_options (encoder,
encoder->option_string_prop->str) == FALSE) { encoder->option_string_prop->str) == FALSE) {
GST_DEBUG_OBJECT (encoder, "Your option-string contains errors."); GST_DEBUG_OBJECT (encoder, "Your option-string contains errors.");
goto unlock_and_return; goto unlock_and_return;
} }
}
/* apply user-set options */ /* apply user-set options */
if (encoder->option_string && encoder->option_string->len) { if (encoder->option_string && encoder->option_string->len) {
GST_DEBUG_OBJECT (encoder, "Applying user-set options: %s", GST_DEBUG_OBJECT (encoder, "Applying user-set options: %s",