From 3554c95548cef56693108ee99820cd229b220467 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Thu, 22 Jul 2010 11:53:04 +0200 Subject: [PATCH] x264enc: Add some more debug info --- ext/x264/gstx264enc.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 801cf8bc0a..183ec24fdc 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1015,12 +1015,15 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder) encoder->x264param.i_timebase_den = 1000000000; #endif - /* apply user set properties */ - if (encoder->option_string_prop && encoder->option_string_prop->len - && gst_x264_enc_parse_options (encoder, - encoder->option_string_prop->str) == FALSE) { - GST_DEBUG_OBJECT (encoder, "Your option-string contains errors."); - goto unlock_and_return; + /* apply option-string property */ + if (encoder->option_string_prop && encoder->option_string_prop->len) { + 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) { + GST_DEBUG_OBJECT (encoder, "Your option-string contains errors."); + goto unlock_and_return; + } } /* apply user-set options */ if (encoder->option_string && encoder->option_string->len) {