summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2019-08-27 15:47:28 +0530
committerTim-Philipp Müller <tim@centricular.com>2019-09-04 10:41:46 +0000
commit35ffd018e29afea764e8ec3e7b17df129a999a4c (patch)
treeb717baaa3b478a7d45cfe8e22603fb127b9d0ff0
parent55ea6d017f7f300327dbc6cfcdbcba6667ed0177 (diff)
downloadgst-omx-35ffd018e29afea764e8ec3e7b17df129a999a4c.tar.gz
omxvideoenc: log the full input format
Make it easier to debug dynamic format changes.
-rw-r--r--omx/gstomxvideoenc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
index 8a45177..f266596 100644
--- a/omx/gstomxvideoenc.c
+++ b/omx/gstomxvideoenc.c
@@ -2223,12 +2223,14 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
OMX_PARAM_PORTDEFINITIONTYPE port_def;
GstVideoInfo *info = &state->info;
GList *negotiation_map = NULL, *l;
+ GstCaps *caps;
self = GST_OMX_VIDEO_ENC (encoder);
klass = GST_OMX_VIDEO_ENC_GET_CLASS (encoder);
- GST_DEBUG_OBJECT (self, "Setting new format %s",
- gst_video_format_to_string (info->finfo->format));
+ caps = gst_video_info_to_caps (info);
+ 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);