diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2016-01-13 16:32:25 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2016-01-13 16:32:25 -0300 |
commit | 0d18717912d4a2aea693831d090717c6258fbe79 (patch) | |
tree | f384c23ef4aa0cb4421b4103cc79197224435f35 | |
parent | 81c52aaa1695cd1d0ca9004aa668b9ed85db2da9 (diff) |
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
-rw-r--r-- | gst/playback/gstsubtitleoverlay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c index 4b4b0aa09..adab7e525 100644 --- a/gst/playback/gstsubtitleoverlay.c +++ b/gst/playback/gstsubtitleoverlay.c @@ -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); |