diff options
author | He Junyan <junyan.he@intel.com> | 2020-07-11 23:39:40 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-11-30 16:45:54 +0000 |
commit | 33ef4ec817f5094381f8fb4fa2682e08e4583409 (patch) | |
tree | b5e4111faf538f5d2edc715060d515ef3f039e3e | |
parent | 1725e47700f1bbeee54e45b98432bfbd4357b720 (diff) | |
download | gstreamer-vaapi-33ef4ec817f5094381f8fb4fa2682e08e4583409.tar.gz |
plugin: encode: vp9: Add the profile into output caps.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/380>
-rw-r--r-- | gst/vaapi/gstvaapiencode_vp9.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapiencode_vp9.c b/gst/vaapi/gstvaapiencode_vp9.c index 45384620..c1cfb778 100644 --- a/gst/vaapi/gstvaapiencode_vp9.c +++ b/gst/vaapi/gstvaapiencode_vp9.c @@ -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; } |