gst-plugins-rs/src/plugin.c

32 lines
687 B
C
Raw Normal View History

2016-05-13 13:35:48 +00:00
#include <gst/gst.h>
#include "rsfilesrc.h"
2016-05-13 15:07:26 +00:00
#include "rsfilesink.h"
2016-05-13 13:35:48 +00:00
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "rsfilesrc", GST_RANK_NONE,
GST_TYPE_RSFILE_SRC)) {
return FALSE;
}
2016-05-13 15:07:26 +00:00
if (!gst_element_register (plugin, "rsfilesink", GST_RANK_NONE,
GST_TYPE_RSFILE_SINK)) {
return FALSE;
}
2016-05-13 13:35:48 +00:00
return TRUE;
}
#define VERSION "1.0"
#define PACKAGE "rsplugin"
#define GST_PACKAGE_NAME PACKAGE
#define GST_PACKAGE_ORIGIN "http://www.example.org"
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
rsplugin,
"Rust Plugin", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME,
GST_PACKAGE_ORIGIN);