mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-05-20 09:18:15 +00:00
aeefcefe09
Doesn't write to a file yet, just prints out a message when a buffer is received. All the skeleton is there to implement Sink children.
28 lines
558 B
C
28 lines
558 B
C
#include <gst/gst.h>
|
|
|
|
#include "rssource.h"
|
|
#include "rssink.h"
|
|
|
|
static gboolean
|
|
plugin_init (GstPlugin * plugin)
|
|
{
|
|
if (!gst_rs_source_plugin_init (plugin))
|
|
return FALSE;
|
|
|
|
if (!gst_rs_sink_plugin_init (plugin))
|
|
return FALSE;
|
|
|
|
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);
|