#include "gstgssink.h"
#include "gstgssrc.h"
-GST_DEBUG_CATEGORY (gst_gs_src_debug);
-
static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "gssrc", GST_RANK_NONE, GST_TYPE_GS_SRC))
- return FALSE;
+ gboolean ret = FALSE;
- if (!gst_element_register (plugin, "gssink", GST_RANK_NONE, GST_TYPE_GS_SINK))
- return FALSE;
+ ret |= GST_ELEMENT_REGISTER (gssrc, plugin);
+ ret |= GST_ELEMENT_REGISTER (gssink, plugin);
- return TRUE;
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
#define gst_gs_sink_parent_class parent_class
G_DEFINE_TYPE(GstGsSink, gst_gs_sink, GST_TYPE_BASE_SINK);
+GST_ELEMENT_REGISTER_DEFINE (gssink, "gssink", GST_RANK_NONE, GST_TYPE_GS_SINK)
class GSWriteStream {
public:
GST_GS_SINK_NEXT_NONE,
} GstGsSinkNext;
+GST_ELEMENT_REGISTER_DECLARE (gssink);
+
G_END_DECLS
#endif // __GST_GS_SINK_H__
GST_DEBUG_CATEGORY_INIT(gst_gs_src_debug, "gssrc", 0, "gssrc element");
#define gst_gs_src_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE(GstGsSrc, gst_gs_src, GST_TYPE_BASE_SRC, _do_init);
+GST_ELEMENT_REGISTER_DEFINE (gssrc, "gssrc", GST_RANK_NONE, GST_TYPE_GS_SRC)
namespace gcs = google::cloud::storage;
#define GST_TYPE_GS_SRC (gst_gs_src_get_type())
G_DECLARE_FINAL_TYPE(GstGsSrc, gst_gs_src, GST, GS_SRC, GstBaseSrc)
+GST_ELEMENT_REGISTER_DECLARE (gssrc);
G_END_DECLS
#endif // __GST_GS_SRC_H__