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,12 +1015,15 @@ 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) == FALSE) { encoder->option_string_prop->str);
GST_DEBUG_OBJECT (encoder, "Your option-string contains errors."); if (gst_x264_enc_parse_options (encoder,
goto unlock_and_return; encoder->option_string_prop->str) == FALSE) {
GST_DEBUG_OBJECT (encoder, "Your option-string contains errors.");
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) {