GstPad: Do not call gst_pad_accept_caps() when caps change
GstPad: Do not call gst_pad_accept_caps() when caps change

Instead just check that the caps intersect with the pad template.
The elements should properly accept/refuse the caps in setcaps().

Shaves off calling the default implementation of acceptcaps which does
an expensive gst_pad_get_caps() (so if you have 50 of those elements in
a row, you'd be doing factorial(50) gst_pad_get_caps...).

Does not break any module unit test and most apps work fine.

https://bugzilla.gnome.org/show_bug.cgi?id=622740

centricular/gstreamer,collects/gstreamer,mparis/gstreamer,jpxiong/gstreamer,krichter722/gstreamer,centricular/gstreamer,ylatuya/gstreamer,mrchapp/gstreamer,shelsonjava/gstreamer,shelsonjava/gstreamer,cfoch/gstreamer,mparis/gstreamer,StreamUtils/gstreamer,surround-io/gstreamer,Lachann/gstreamer,shelsonjava/gstreamer,krieger-od/gstreamer,jpakkane/gstreamer,centricular/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,mrchapp/gstreamer,cfoch/gstreamer,jpxiong/gstreamer,magcius/gstreamer,collects/gstreamer,lovebug356/gstreamer,drothlis/gstreamer,StreamUtils/gstreamer,surround-io/gstreamer,mparis/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,cfoch/gstreamer,surround-io/gstreamer,krieger-od/gstreamer,Distrotech/gstreamer,ensonic/gstreamer,ylatuya/gstreamer,krichter722/gstreamer,magcius/gstreamer,shelsonjava/gstreamer,krieger-od/gstreamer,drothlis/gstreamer,jpakkane/gstreamer,collects/gstreamer,lubosz/gstreamer,krichter722/gstreamer,mrchapp/gstreamer,ensonic/gstreamer,centricular/gstreamer,lubosz/gstreamer,lovebug356/gstreamer,shelsonjava/gstreamer,drothlis/gstreamer,cablelabs/gstreamer,magcius/gstreamer,krichter722/gstreamer,ahmedammar/platform_external_gst_gstreamer,Lachann/gstreamer,ahmedammar/platform_external_gst_gstreamer,ylatuya/gstreamer,krieger-od/gstreamer,cfoch/gstreamer,lovebug356/gstreamer,drothlis/gstreamer,Lachann/gstreamer,cablelabs/gstreamer,cablelabs/gstreamer,magcius/gstreamer,lubosz/gstreamer,justinjoy/gstreamer,krieger-od/gstreamer,centricular/gstreamer,drothlis/gstreamer,StreamUtils/gstreamer,mparis/gstreamer,jpxiong/gstreamer,Lachann/gstreamer,cablelabs/gstreamer,Distrotech/gstreamer,Distrotech/gstreamer,lubosz/gstreamer,jpakkane/gstreamer,Lachann/gstreamer,lovebug356/gstreamer,ensonic/gstreamer,collects/gstreamer,StreamUtils/gstreamer,collects/gstreamer,StreamUtils/gstreamer,magcius/gstreamer,jpxiong/gstreamer,mrchapp/gstreamer,jpakkane/gstreamer,ensonic/gstreamer,cfoch/gstreamer,cablelabs/gstreamer,justinjoy/gstreamer,ahmedammar/platform_external_gst_gstreamer,ahmedammar/platform_external_gst_gstreamer,ylatuya/gstreamer,mparis/gstreamer,Distrotech/gstreamer,mrchapp/gstreamer,lubosz/gstreamer,lovebug356/gstreamer,ylatuya/gstreamer,justinjoy/gstreamer,Distrotech/gstreamer,ahmedammar/platform_external_gst_gstreamer,ensonic/gstreamer,jpakkane/gstreamer,krichter722/gstreamer,jpxiong/gstreamer