caps: avoid doing logic in g_assert
caps: avoid doing logic in g_assert

Make sure we still do the right thing when glib is compiled without
assertions.

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