projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81c52aa
)
subtitleoverlay: replace gst_caps_can_intersect() with is_subset()
author
Thiago Santos
<thiagoss@osg.samsung.com>
Wed, 13 Jan 2016 19:32:25 +0000
(16:32 -0300)
committer
Thiago Santos
<thiagoss@osg.samsung.com>
Wed, 13 Jan 2016 19:32:25 +0000
(16:32 -0300)
Subset check verifies also that all required fields are present
and is mostly commonly used when checking if an element accepts
a certain caps
gst/playback/gstsubtitleoverlay.c
patch
|
blob
|
history
diff --git
a/gst/playback/gstsubtitleoverlay.c
b/gst/playback/gstsubtitleoverlay.c
index 4b4b0aa0986718ee53c01fa6a58184a91528a2ae..adab7e5254e3465e60389109ec962d20259a01a8 100644
(file)
--- 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_intersec
t (caps, pad_caps))
+ if (gst_caps_
is_subse
t (caps, pad_caps))
ret = TRUE;
gst_caps_unref (pad_caps);