From 7b8a6f2453a58efee505e172296df94d987d7f1d Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Tue, 15 Sep 2015 15:31:31 -0400 Subject: [PATCH] niimaqdxsrc: simplify template caps, mostly for better looking gst-inspect output --- sys/niimaqdx/gstniimaqdx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/niimaqdx/gstniimaqdx.c b/sys/niimaqdx/gstniimaqdx.c index 63af08e..e976d81 100644 --- a/sys/niimaqdx/gstniimaqdx.c +++ b/sys/niimaqdx/gstniimaqdx.c @@ -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)); }