2016-05-13 13:35:48 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2016-05-14 12:44:40 +00:00
|
|
|
#include "rssource.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)
|
|
|
|
{
|
2016-05-14 12:44:40 +00:00
|
|
|
if (!gst_rs_source_plugin_init (plugin))
|
2016-05-13 13:35:48 +00:00
|
|
|
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);
|