encodebin: Enhance error debug when failing to create an encoder

This commit is contained in:
Thibault Saunier 2016-12-16 16:27:04 -03:00
parent 2cfb446eb9
commit 2d1b5a1dc2

View file

@ -1140,8 +1140,12 @@ _post_missing_plugin_message (GstEncodeBin * ebin, GstEncodingProfile * prof)
GstCaps *format; GstCaps *format;
format = gst_encoding_profile_get_format (prof); format = gst_encoding_profile_get_format (prof);
GST_ERROR_OBJECT (ebin, "Couldn't create encoder for format %" GST_PTR_FORMAT, GST_ERROR_OBJECT (ebin,
format); "Couldn't create encoder with preset %s and preset name %s"
" for format %" GST_PTR_FORMAT,
GST_STR_NULL (gst_encoding_profile_get_preset (prof)),
GST_STR_NULL (gst_encoding_profile_get_preset_name (prof)), format);
/* missing plugin support */ /* missing plugin support */
gst_element_post_message (GST_ELEMENT_CAST (ebin), gst_element_post_message (GST_ELEMENT_CAST (ebin),
gst_missing_encoder_message_new (GST_ELEMENT_CAST (ebin), format)); gst_missing_encoder_message_new (GST_ELEMENT_CAST (ebin), format));