Add example using gstreamer-full
authorXavier Claessens <xavier.claessens@collabora.com>
Mon, 16 Dec 2019 21:05:30 +0000 (16:05 -0500)
committerXavier Claessens <xavier.claessens@collabora.com>
Wed, 4 Mar 2020 13:28:11 +0000 (08:28 -0500)
It will be used by the CI to verify we can build it.

examples/static-plugins/main.c [new file with mode: 0644]
examples/static-plugins/meson.build [new file with mode: 0644]

diff --git a/examples/static-plugins/main.c b/examples/static-plugins/main.c
new file mode 100644 (file)
index 0000000..7124232
--- /dev/null
@@ -0,0 +1,17 @@
+#include <gst/gst.h>
+#include <gst/gstinitstaticplugins.h>
+
+int
+main (int argc, char *argv[])
+{
+  GstElement *e;
+
+  gst_init (&argc, &argv);
+  gst_init_static_plugins ();
+
+  e = gst_element_factory_make ("identity", NULL);
+  g_assert_nonnull (e);
+  g_object_unref (e);
+
+  return 0;
+}
diff --git a/examples/static-plugins/meson.build b/examples/static-plugins/meson.build
new file mode 100644 (file)
index 0000000..0273086
--- /dev/null
@@ -0,0 +1,6 @@
+project('myapp', 'c')
+
+dep = dependency('gstreamer-full-1.0')
+app = executable('myapp', 'main.c', dependencies : dep)
+
+test('test-gstreamer-full', app)