diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-08-23 19:12:23 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-08-23 19:12:23 +0000 |
commit | 0a527f667ae62ac335f22d1d053179b20ff26e94 (patch) | |
tree | 9b4b85a92c9c95005a54660b21da7cb05102ee34 /audio/gstbluetooth.c | |
parent | 2ec3960a534fe2e8e0d63cc3600ef1fd90505b0d (diff) |
Add SBC encoder and decoder skeletons for GStreamer
Diffstat (limited to 'audio/gstbluetooth.c')
-rw-r--r-- | audio/gstbluetooth.c | 15 |
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; } |