mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-05 06:05:53 +00:00
subtitleoverlay: replace gst_caps_can_intersect() with is_subset()
Subset check verifies also that all required fields are present and is mostly commonly used when checking if an element accepts a certain caps
This commit is contained in:
parent
81c52aaa16
commit
0d18717912
|
@ -164,7 +164,7 @@ pad_supports_caps (GstPad * pad, GstCaps * caps)
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
|
|
||||||
pad_caps = gst_pad_query_caps (pad, NULL);
|
pad_caps = gst_pad_query_caps (pad, NULL);
|
||||||
if (gst_caps_can_intersect (caps, pad_caps))
|
if (gst_caps_is_subset (caps, pad_caps))
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
gst_caps_unref (pad_caps);
|
gst_caps_unref (pad_caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue