mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
resindvdbin: Use gst_caps_can_intersect() because it's faster
This commit is contained in:
parent
bf1b64fab0
commit
0171e32944
1 changed files with 1 additions and 3 deletions
|
@ -706,9 +706,7 @@ can_sink_caps (GstElement * e, GstCaps * caps)
|
|||
if (sink) {
|
||||
GstCaps *sink_caps = gst_pad_get_caps (sink);
|
||||
if (sink_caps) {
|
||||
GstCaps *intersect = gst_caps_intersect (sink_caps, caps);
|
||||
res = !gst_caps_is_empty (intersect);
|
||||
gst_caps_unref (intersect);
|
||||
res = gst_caps_can_intersect (sink_caps, caps);
|
||||
gst_caps_unref (sink_caps);
|
||||
}
|
||||
gst_object_unref (sink);
|
||||
|
|
Loading…
Reference in a new issue