mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
caps: Don't get us sysmem capsfeatures if we just check for fixed caps
This commit is contained in:
parent
23434848d3
commit
e51e0cb0d3
1 changed files with 2 additions and 2 deletions
|
@ -1103,7 +1103,7 @@ gst_caps_is_fixed (const GstCaps * caps)
|
||||||
if (GST_CAPS_LEN (caps) != 1)
|
if (GST_CAPS_LEN (caps) != 1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
features = gst_caps_get_features (caps, 0);
|
features = gst_caps_get_features_unchecked (caps, 0);
|
||||||
if (features && gst_caps_features_is_any (features))
|
if (features && gst_caps_features_is_any (features))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -2111,7 +2111,7 @@ gst_caps_fixate (GstCaps * caps)
|
||||||
gst_structure_fixate (s);
|
gst_structure_fixate (s);
|
||||||
|
|
||||||
/* Set features to sysmem if they're still ANY */
|
/* Set features to sysmem if they're still ANY */
|
||||||
f = gst_caps_get_features (caps, 0);
|
f = gst_caps_get_features_unchecked (caps, 0);
|
||||||
if (f && gst_caps_features_is_any (f)) {
|
if (f && gst_caps_features_is_any (f)) {
|
||||||
f = gst_caps_features_new_empty ();
|
f = gst_caps_features_new_empty ();
|
||||||
gst_caps_set_features (caps, 0, f);
|
gst_caps_set_features (caps, 0, f);
|
||||||
|
|
Loading…
Reference in a new issue