caps: Unify common checks for intersections
authorEdward Hervey <edward@centricular.com>
Fri, 17 Apr 2020 15:12:10 +0000 (17:12 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 4 May 2020 12:26:10 +0000 (12:26 +0000)
commit1d0bda8005066f481ff5b243dccb983306023410
tree508f3345359b180f94a83a84c9869f0e4572c690
parenta307c0623c1a9bef5b556baa0cb25de4aca20de6
caps: Unify common checks for intersections

Regardless of the intersect method chosen, migrate the same checks
up into the calling function. Same result, just less code.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/455>
gst/gstcaps.c