Revision 21005,
1003 bytes
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21004,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | |
---|
2 | #ifdef HAVE_CONFIG_H |
---|
3 | #include "config.h" |
---|
4 | #endif |
---|
5 | #include <gst/gst.h> |
---|
6 | |
---|
7 | static gboolean |
---|
8 | plugin_init (GstPlugin * plugin) |
---|
9 | { |
---|
10 | return TRUE; |
---|
11 | } |
---|
12 | |
---|
13 | GST_PLUGIN_DEFINE_STATIC (GST_VERSION_MAJOR, |
---|
14 | GST_VERSION_MINOR, |
---|
15 | "testplugin", |
---|
16 | "a plugin for testing", |
---|
17 | plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN); |
---|
18 | |
---|
19 | static gboolean |
---|
20 | plugin2_init (GstPlugin * plugin) |
---|
21 | { |
---|
22 | return TRUE; |
---|
23 | } |
---|
24 | |
---|
25 | GST_PLUGIN_DEFINE_STATIC (GST_VERSION_MAJOR, |
---|
26 | GST_VERSION_MINOR, |
---|
27 | "testplugin2", |
---|
28 | "a second plugin for testing", |
---|
29 | plugin2_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN); |
---|
30 | |
---|
31 | int |
---|
32 | main (int argc, char *argv[]) |
---|
33 | { |
---|
34 | GstPlugin *plugin; |
---|
35 | |
---|
36 | gst_init (&argc, &argv); |
---|
37 | |
---|
38 | plugin = gst_registry_pool_find_plugin ("testplugin"); |
---|
39 | g_assert (plugin != NULL); |
---|
40 | |
---|
41 | g_print ("testplugin: %p %s\n", plugin, gst_plugin_get_name (plugin)); |
---|
42 | |
---|
43 | plugin = gst_registry_pool_find_plugin ("testplugin2"); |
---|
44 | g_assert (plugin != NULL); |
---|
45 | |
---|
46 | g_print ("testplugin2: %p %s\n", plugin, gst_plugin_get_name (plugin)); |
---|
47 | |
---|
48 | return 0; |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.