From 914a4712d9fc34966b22256f993899d5b581a3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 31 Mar 2017 11:21:21 +0200 Subject: [PATCH] vaapiencode: enhance logs of negotiated caps https://bugzilla.gnome.org/show_bug.cgi?id=771291 --- gst/vaapi/gstvaapiencode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapiencode.c b/gst/vaapi/gstvaapiencode.c index b0f0a324b1..cc460a4c83 100644 --- a/gst/vaapi/gstvaapiencode.c +++ b/gst/vaapi/gstvaapiencode.c @@ -373,6 +373,9 @@ ensure_allowed_sinkpad_caps (GstVaapiEncode * encode) out_caps = gst_caps_make_writable (out_caps); gst_caps_append (out_caps, gst_caps_copy (raw_caps)); gst_caps_replace (&encode->allowed_sinkpad_caps, out_caps); + GST_INFO_OBJECT (encode, "Allowed sink caps %" GST_PTR_FORMAT, + encode->allowed_sinkpad_caps); + ret = TRUE; bail: @@ -411,7 +414,7 @@ gst_vaapiencode_get_caps (GstVideoEncoder * venc, GstCaps * filter) result = gst_video_encoder_proxy_getcaps (venc, encode->allowed_sinkpad_caps, filter); - GST_DEBUG_OBJECT (venc, "Returning sink caps %" GST_PTR_FORMAT, result); + GST_DEBUG_OBJECT (venc, "Negotiated sink caps %" GST_PTR_FORMAT, result); return result; }