Add example using gstreamer-full

It will be used by the CI to verify we can build it.
This commit is contained in:
Xavier Claessens 2019-12-16 16:05:30 -05:00
parent 35285c51b8
commit 7fa292406e
2 changed files with 23 additions and 0 deletions

View file

@ -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;
}

View file

@ -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)