vaapih264enc: fix log message

Before the log wasn't processed because wrong instance pointer.
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-01-17 14:22:48 +01:00
parent 25422b6766
commit 6eafebc804

View file

@ -361,8 +361,6 @@ retry:
ret = TRUE; ret = TRUE;
} }
GST_INFO_OBJECT (encode, "out caps %" GST_PTR_FORMAT, caps);
if (!ret) if (!ret)
GST_LOG ("There is no compatible profile in the requested caps."); 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) if (profile != GST_VAAPI_PROFILE_UNKNOWN)
set_compatible_profile (encode, caps, profile); set_compatible_profile (encode, caps, profile);
GST_INFO_OBJECT (base_encode, "out caps %" GST_PTR_FORMAT, caps);
/* XXX: update level information */ /* XXX: update level information */
return caps; return caps;
} }