mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
encodebin: Enhance error debug when failing to create an encoder
This commit is contained in:
parent
2cfb446eb9
commit
2d1b5a1dc2
1 changed files with 6 additions and 2 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue