plugin: encode: vp9: Add the profile into output caps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/380>
This commit is contained in:
He Junyan 2020-07-11 23:39:40 +08:00 committed by Víctor Manuel Jáquez Leal
parent 1725e47700
commit 33ef4ec817

View file

@ -80,8 +80,14 @@ static GstCaps *
gst_vaapiencode_vp9_get_caps (GstVaapiEncode * base_encode)
{
GstCaps *caps;
GstVaapiProfile profile;
const gchar *profile_str;
caps = gst_caps_from_string (GST_CODEC_CAPS);
profile = gst_vaapi_encoder_get_profile (base_encode->encoder);
profile_str = gst_vaapi_utils_vp9_get_profile_string (profile);
if (profile_str)
gst_caps_set_simple (caps, "profile", G_TYPE_STRING, profile_str, NULL);
return caps;
}