mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ pad_supports_caps (GstPad * pad, GstCaps * caps)
|
|||
gboolean ret = FALSE;
|
||||
|
||||
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;
|
||||
gst_caps_unref (pad_caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue