From 73b35c403df78c10e03ded497fcb16fcb23b822e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 22 Aug 2007 21:50:59 +0000 Subject: Add skeleton for an A2DP sink element --- audio/gstbluetooth.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'audio/gstbluetooth.c') diff --git a/audio/gstbluetooth.c b/audio/gstbluetooth.c index ece6aa9e..392de194 100644 --- a/audio/gstbluetooth.c +++ b/audio/gstbluetooth.c @@ -25,18 +25,24 @@ #include #endif -#include +#include "gsta2dpsink.h" -#include - -#include "ipc.h" -#include "sbc.h" +GST_DEBUG_CATEGORY(bluetooth_debug); static gboolean plugin_init(GstPlugin *plugin) { + GST_INFO("Bluetooth plugin %s", VERSION); + + 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; } GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR, "bluetooth", "Bluetooth plugin library", - plugin_init, VERSION, "LGPL", PACKAGE, "http://www.bluez.org/") + plugin_init, VERSION, "LGPL", "BlueZ", "http://www.bluez.org/") -- cgit