Fix gst_vaapi_profile_get_caps() to include the "profile" field.

This commit is contained in:
gb 2010-04-29 21:12:30 +00:00 committed by Gwenole Beauchesne
parent 875352c12d
commit 8c17e2f99d

View file

@ -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;
}
/**