From 6eafebc80474cc8a19d5e886b19948dbc52944f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 17 Jan 2020 14:22:48 +0100 Subject: [PATCH] vaapih264enc: fix log message Before the log wasn't processed because wrong instance pointer. --- gst/vaapi/gstvaapiencode_h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapiencode_h264.c b/gst/vaapi/gstvaapiencode_h264.c index 3a119bccbb..f623f67b40 100644 --- a/gst/vaapi/gstvaapiencode_h264.c +++ b/gst/vaapi/gstvaapiencode_h264.c @@ -361,8 +361,6 @@ retry: ret = TRUE; } - GST_INFO_OBJECT (encode, "out caps %" GST_PTR_FORMAT, caps); - if (!ret) GST_LOG ("There is no compatible profile in the requested caps."); @@ -390,6 +388,8 @@ gst_vaapiencode_h264_get_caps (GstVaapiEncode * base_encode) if (profile != GST_VAAPI_PROFILE_UNKNOWN) set_compatible_profile (encode, caps, profile); + GST_INFO_OBJECT (base_encode, "out caps %" GST_PTR_FORMAT, caps); + /* XXX: update level information */ return caps; }