diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-23 17:00:13 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-23 17:00:13 +0000 |
commit | d509d4960ff6fb74bf86bf2791067197d3795440 (patch) | |
tree | a86fe1cfed50ef1bcfa8c45d55f6139b8303b284 /audio/gsta2dpsink.c | |
parent | 6e49d2d6ab859761671b51b10a40b5750551e152 (diff) |
Code cleanup.
Diffstat (limited to 'audio/gsta2dpsink.c')
-rw-r--r-- | audio/gsta2dpsink.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c index 535f6c5e..b24dc8b8 100644 --- a/audio/gsta2dpsink.c +++ b/audio/gsta2dpsink.c @@ -831,25 +831,6 @@ static gboolean gst_a2dp_sink_unlock(GstBaseSink *basesink) return TRUE; } -static GstFlowReturn gst_a2dp_sink_buffer_alloc(GstBaseSink *basesink, - guint64 offset, guint size, GstCaps* caps, - GstBuffer **buf) -{ - GstA2dpSink *self = GST_A2DP_SINK(basesink); - - *buf = gst_buffer_new_and_alloc(size); - if (!(*buf)) { - GST_ERROR_OBJECT(self, "buffer allocation failed"); - return GST_FLOW_ERROR; - } - - gst_buffer_set_caps(*buf, caps); - - GST_BUFFER_OFFSET(*buf) = offset; - - return GST_FLOW_OK; -} - static void gst_a2dp_sink_class_init(GstA2dpSinkClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); @@ -870,8 +851,6 @@ static void gst_a2dp_sink_class_init(GstA2dpSinkClass *klass) basesink_class->set_caps = GST_DEBUG_FUNCPTR(gst_a2dp_sink_set_caps); basesink_class->get_caps = GST_DEBUG_FUNCPTR(gst_a2dp_sink_get_caps); basesink_class->unlock = GST_DEBUG_FUNCPTR(gst_a2dp_sink_unlock); - basesink_class->buffer_alloc = - GST_DEBUG_FUNCPTR(gst_a2dp_sink_buffer_alloc); g_object_class_install_property(object_class, PROP_DEVICE, g_param_spec_string("device", "Device", |