summaryrefslogtreecommitdiffstats
path: root/audio/gstbluetooth.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-01-23 13:14:02 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-01-23 13:14:02 +0000
commita0af7ee44534dad8f35a4142c6a22177e54ffc57 (patch)
treec6a475d035e40f617a213a9ad5327a7eb5d01388 /audio/gstbluetooth.c
parent1cacae6dd9f44d0e403aa29e45eb3d20e7127f68 (diff)
Make a2dpsink to act like a bin and split the payloader.
Diffstat (limited to 'audio/gstbluetooth.c')
-rw-r--r--audio/gstbluetooth.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/audio/gstbluetooth.c b/audio/gstbluetooth.c
index 593a311e..764bc899 100644
--- a/audio/gstbluetooth.c
+++ b/audio/gstbluetooth.c
@@ -28,7 +28,9 @@
#include "gstsbcenc.h"
#include "gstsbcdec.h"
#include "gstsbcparse.h"
+#include "gsta2dpsendersink.h"
#include "gsta2dpsink.h"
+#include "gstrtpsbcpay.h"
static GstStaticCaps sbc_caps = GST_STATIC_CAPS("audio/x-sbc");
@@ -55,20 +57,22 @@ static gboolean plugin_init(GstPlugin *plugin)
SBC_CAPS, NULL, NULL) == FALSE)
return FALSE;
- if (gst_element_register(plugin, "sbcenc",
- GST_RANK_NONE, GST_TYPE_SBC_ENC) == FALSE)
+ if (!gst_sbc_enc_plugin_init(plugin))
return FALSE;
- if (gst_element_register(plugin, "sbcdec",
- GST_RANK_PRIMARY, GST_TYPE_SBC_DEC) == FALSE)
+ if (!gst_sbc_dec_plugin_init(plugin))
return FALSE;
- if (gst_element_register(plugin, "sbcparse",
- GST_RANK_PRIMARY, GST_TYPE_SBC_PARSE) == FALSE)
+ if (!gst_sbc_parse_plugin_init(plugin))
return FALSE;
- if (gst_element_register(plugin, "a2dpsink",
- GST_RANK_PRIMARY, GST_TYPE_A2DP_SINK) == FALSE)
+ if (!gst_a2dp_sender_sink_plugin_init(plugin))
+ return FALSE;
+
+ if (!gst_a2dp_sink_plugin_init(plugin))
+ return FALSE;
+
+ if (!gst_rtp_sbc_pay_plugin_init(plugin))
return FALSE;
return TRUE;