mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Add example using gstreamer-full
It will be used by the CI to verify we can build it.
This commit is contained in:
parent
35285c51b8
commit
7fa292406e
2 changed files with 23 additions and 0 deletions
17
examples/static-plugins/main.c
Normal file
17
examples/static-plugins/main.c
Normal 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;
|
||||
}
|
6
examples/static-plugins/meson.build
Normal file
6
examples/static-plugins/meson.build
Normal 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)
|
Loading…
Reference in a new issue