mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
Fix gst_vaapi_profile_get_caps() to include the "profile" field.
This commit is contained in:
parent
875352c12d
commit
8c17e2f99d
1 changed files with 10 additions and 1 deletions
|
@ -279,8 +279,17 @@ GstCaps *
|
|||
gst_vaapi_profile_get_caps(GstVaapiProfile profile)
|
||||
{
|
||||
const GstVaapiProfileMap * const m = get_profiles_map(profile);
|
||||
GstCaps *caps;
|
||||
|
||||
return m ? gst_caps_from_string(m->caps_str) : NULL;
|
||||
if (!m)
|
||||
return NULL;
|
||||
|
||||
caps = gst_caps_from_string(m->caps_str);
|
||||
if (!caps)
|
||||
return NULL;
|
||||
|
||||
gst_caps_set_simple(caps, "profile", G_TYPE_STRING, m->profile_str, NULL);
|
||||
return caps;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue