mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
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:
parent
1725e47700
commit
33ef4ec817
1 changed files with 6 additions and 0 deletions
|
@ -80,8 +80,14 @@ static GstCaps *
|
||||||
gst_vaapiencode_vp9_get_caps (GstVaapiEncode * base_encode)
|
gst_vaapiencode_vp9_get_caps (GstVaapiEncode * base_encode)
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
GstVaapiProfile profile;
|
||||||
|
const gchar *profile_str;
|
||||||
|
|
||||||
caps = gst_caps_from_string (GST_CODEC_CAPS);
|
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;
|
return caps;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue