mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
omxvideoenc: log the full input format
Make it easier to debug dynamic format changes.
This commit is contained in:
parent
55ea6d017f
commit
35ffd018e2
1 changed files with 4 additions and 2 deletions
|
@ -2223,12 +2223,14 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
|
||||||
OMX_PARAM_PORTDEFINITIONTYPE port_def;
|
OMX_PARAM_PORTDEFINITIONTYPE port_def;
|
||||||
GstVideoInfo *info = &state->info;
|
GstVideoInfo *info = &state->info;
|
||||||
GList *negotiation_map = NULL, *l;
|
GList *negotiation_map = NULL, *l;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
self = GST_OMX_VIDEO_ENC (encoder);
|
self = GST_OMX_VIDEO_ENC (encoder);
|
||||||
klass = GST_OMX_VIDEO_ENC_GET_CLASS (encoder);
|
klass = GST_OMX_VIDEO_ENC_GET_CLASS (encoder);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (self, "Setting new format %s",
|
caps = gst_video_info_to_caps (info);
|
||||||
gst_video_format_to_string (info->finfo->format));
|
GST_DEBUG_OBJECT (self, "Setting new input format: %" GST_PTR_FORMAT, caps);
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
gst_omx_port_get_port_definition (self->enc_in_port, &port_def);
|
gst_omx_port_get_port_definition (self->enc_in_port, &port_def);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue