summaryrefslogtreecommitdiffstats
path: root/audio/gsta2dpsink.h
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/gsta2dpsink.h
parent1cacae6dd9f44d0e403aa29e45eb3d20e7127f68 (diff)
Make a2dpsink to act like a bin and split the payloader.
Diffstat (limited to 'audio/gsta2dpsink.h')
-rw-r--r--audio/gsta2dpsink.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/audio/gsta2dpsink.h b/audio/gsta2dpsink.h
index f5b9b69b..4bf9d603 100644
--- a/audio/gsta2dpsink.h
+++ b/audio/gsta2dpsink.h
@@ -22,7 +22,8 @@
*/
#include <gst/gst.h>
-#include <gst/base/gstbasesink.h>
+#include <gst/rtp/gstbasertppayload.h>
+#include "gsta2dpsendersink.h"
G_BEGIN_DECLS
@@ -40,31 +41,27 @@ G_BEGIN_DECLS
typedef struct _GstA2dpSink GstA2dpSink;
typedef struct _GstA2dpSinkClass GstA2dpSinkClass;
-struct bluetooth_data;
-
struct _GstA2dpSink {
- GstBaseSink sink;
-
- gchar *device;
- GIOChannel *stream;
+ GstBin bin;
- struct bluetooth_data *data;
- GIOChannel *server;
+ GstBaseRTPPayload *rtp;
+ GstA2dpSenderSink *sink;
+ GstElement *capsfilter;
- /* stream connection data */
- GstCaps *stream_caps;
-
- GstCaps *dev_caps;
+ gchar *device;
- GMutex *sink_lock;
+ GstGhostPad *ghostpad;
+ GstPadSetCapsFunction ghostpad_setcapsfunc;
+ GstPadEventFunction ghostpad_eventfunc;
- guint watch_id;
+ GstEvent *newseg_event;
};
struct _GstA2dpSinkClass {
- GstBaseSinkClass parent_class;
+ GstBinClass parent_class;
};
GType gst_a2dp_sink_get_type(void);
+gboolean gst_a2dp_sink_plugin_init (GstPlugin * plugin);
G_END_DECLS