summaryrefslogtreecommitdiffstats
path: root/audio/gstbluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gstbluetooth.c')
-rw-r--r--audio/gstbluetooth.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/audio/gstbluetooth.c b/audio/gstbluetooth.c
index 392de194..58655573 100644
--- a/audio/gstbluetooth.c
+++ b/audio/gstbluetooth.c
@@ -25,21 +25,26 @@
#include <config.h>
#endif
+#include "gstsbcenc.h"
+#include "gstsbcdec.h"
#include "gsta2dpsink.h"
-GST_DEBUG_CATEGORY(bluetooth_debug);
-
static gboolean plugin_init(GstPlugin *plugin)
{
GST_INFO("Bluetooth plugin %s", VERSION);
+ if (gst_element_register(plugin, "sbcenc",
+ GST_RANK_NONE, GST_TYPE_SBC_ENC) == FALSE)
+ return FALSE;
+
+ if (gst_element_register(plugin, "sbcdec",
+ GST_RANK_PRIMARY, GST_TYPE_SBC_DEC) == FALSE)
+ return FALSE;
+
if (gst_element_register(plugin, "a2dpsink",
GST_RANK_PRIMARY, GST_TYPE_A2DP_SINK) == FALSE)
return FALSE;
- GST_DEBUG_CATEGORY_INIT(bluetooth_debug, "bluetooth", 0,
- "Bluetooth plugin");
-
return TRUE;
}