omxvideo: display port number when listing supported formats

More convenient when debugging.

https://bugzilla.gnome.org/show_bug.cgi?id=794175
This commit is contained in:
Guillaume Desmottes 2018-03-08 12:09:38 +01:00
parent 72cb1943da
commit d40c6c0449

View file

@ -141,13 +141,13 @@ gst_omx_video_get_supported_colorformats (GstOMXPort * port,
m->type = param.eColorFormat;
negotiation_map = g_list_append (negotiation_map, m);
GST_DEBUG_OBJECT (comp->parent,
"Component supports %s (%d) at index %u",
"Component port %d supports %s (%d) at index %u", port->index,
gst_video_format_to_string (f), param.eColorFormat,
(guint) param.nIndex);
} else {
GST_DEBUG_OBJECT (comp->parent,
"Component supports unsupported color format %d at index %u",
param.eColorFormat, (guint) param.nIndex);
"Component port %d supports unsupported color format %d at index %u",
port->index, param.eColorFormat, (guint) param.nIndex);
}
}
old_index = param.nIndex++;