summaryrefslogtreecommitdiffstats
path: root/audio/gsta2dpsink.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-18 21:50:00 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-18 21:50:00 +0000
commit942422b8c90ba6e30339ab066cdc7fd2fc31cb7c (patch)
tree37853cfb7e2be388f8d54834260a1ee973f45a5b /audio/gsta2dpsink.h
parentcee061308a8d4730b13d308b1ee8fbf3e4a22578 (diff)
Fixes a2dpsink element.
Diffstat (limited to 'audio/gsta2dpsink.h')
-rw-r--r--audio/gsta2dpsink.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/audio/gsta2dpsink.h b/audio/gsta2dpsink.h
index c83ec66c..6c7cfe2a 100644
--- a/audio/gsta2dpsink.h
+++ b/audio/gsta2dpsink.h
@@ -22,7 +22,7 @@
*/
#include <gst/gst.h>
-#include <gst/audio/gstaudiosink.h>
+#include <gst/base/gstbasesink.h>
G_BEGIN_DECLS
@@ -37,19 +37,41 @@ G_BEGIN_DECLS
#define GST_IS_A2DP_SINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_A2DP_SINK))
+enum {
+ NOT_CONFIGURED,
+ CONFIGURING_INIT,
+ CONFIGURING_SENT_CONF,
+ CONFIGURING_RCVD_CONF_RSP,
+ CONFIGURING_RCVD_DEV_CONF,
+ CONFIGURED
+};
+
typedef struct _GstA2dpSink GstA2dpSink;
typedef struct _GstA2dpSinkClass GstA2dpSinkClass;
+struct bluetooth_data;
+
struct _GstA2dpSink {
- GstAudioSink sink;
+ GstBaseSink sink;
gchar *device;
+ GIOChannel *stream;
+ struct bluetooth_data *data;
GIOChannel *server;
+
+ gint con_state;
+
+ GCond *con_conf_end;
+ gboolean waiting_con_conf;
+ GMutex *sink_lock;
+
+ gint total;
+
};
struct _GstA2dpSinkClass {
- GstAudioSinkClass parent_class;
+ GstBaseSinkClass parent_class;
};
GType gst_a2dp_sink_get_type(void);