#endif
#include "gstjack.h"
-#include "gstjackaudiosrc.h"
-#include "gstjackaudiosink.h"
GType
gst_jack_connect_get_type (void)
static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "jackaudiosrc", GST_RANK_PRIMARY,
- GST_TYPE_JACK_AUDIO_SRC))
- return FALSE;
- if (!gst_element_register (plugin, "jackaudiosink", GST_RANK_PRIMARY,
- GST_TYPE_JACK_AUDIO_SINK))
- return FALSE;
-
- return TRUE;
+ gboolean ret = FALSE;
+
+ ret |= GST_ELEMENT_REGISTER (jackaudiosrc, plugin);
+ ret |= GST_ELEMENT_REGISTER (jackaudiosink, plugin);
+
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
#include <jack/jack.h>
#include <gst/audio/audio.h>
+GST_ELEMENT_REGISTER_DECLARE (jackaudiosrc);
+GST_ELEMENT_REGISTER_DECLARE (jackaudiosink);
+
/**
* GstJackConnect:
* @GST_JACK_CONNECT_NONE: Don't automatically connect to physical ports.
#define gst_jack_audio_sink_parent_class parent_class
G_DEFINE_TYPE (GstJackAudioSink, gst_jack_audio_sink, GST_TYPE_AUDIO_BASE_SINK);
+GST_ELEMENT_REGISTER_DEFINE (jackaudiosink, "jackaudiosink",
+ GST_RANK_PRIMARY, GST_TYPE_JACK_AUDIO_SINK);
static void gst_jack_audio_sink_dispose (GObject * object);
static void gst_jack_audio_sink_set_property (GObject * object, guint prop_id,
#define gst_jack_audio_src_parent_class parent_class
G_DEFINE_TYPE (GstJackAudioSrc, gst_jack_audio_src, GST_TYPE_AUDIO_BASE_SRC);
+GST_ELEMENT_REGISTER_DEFINE (jackaudiosrc, "jackaudiosrc",
+ GST_RANK_PRIMARY, GST_TYPE_JACK_AUDIO_SRC);
static void gst_jack_audio_src_dispose (GObject * object);
static void gst_jack_audio_src_set_property (GObject * object, guint prop_id,