niimaqdxsrc: simplify template caps, mostly for better looking gst-inspect output

This commit is contained in:
Joshua M. Doe 2015-09-15 15:31:31 -04:00
parent 13450b3304
commit 7b8a6f2453

View File

@ -433,8 +433,9 @@ gst_niimaqdxsrc_class_init (GstNiImaqDxSrcClass * klass)
for (i = 0; i < G_N_ELEMENTS (imaq_dx_caps_infos); i++) {
ImaqDxCapsInfo *info = &imaq_dx_caps_infos[i];
gst_caps_append (caps, gst_caps_from_string (info->gst_caps_string));
gst_caps_merge (caps, gst_caps_from_string (info->gst_caps_string));
}
caps = gst_caps_simplify (caps);
gst_element_class_add_pad_template (gstelement_class,
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, caps));
}