Mine
public c v1 · immutable#include <gst/gst.h>#include <glib.h>intmain (int argc, char *argv[]){ gst_init (&argc, &argv); GstElementFactory* colorspacefactory = gst_element_factory_find ("ffmpegcolorspace"); if (!colorspacefactory) { return 1; } GstCaps* caps = gst_caps_new_simple("video/x-raw-yuv", NULL); gboolean ok = gst_element_factory_can_src_caps (colorspacefactory, caps); g_assert(ok); gst_caps_unref(caps); gst_object_unref(colorspacefactory); return 0;}