mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
a2dpsink: Don't try to set device caps on avdtpsink
We can't actually configure the transport, so we should only be working with whatever we get.
This commit is contained in:
parent
b2ed98d0a3
commit
7e22db6542
3 changed files with 0 additions and 19 deletions
|
@ -455,9 +455,6 @@ gst_a2dp_sink_init_dynamic_elements (GstA2dpSink * self, GstCaps * caps)
|
|||
g_free (mode);
|
||||
}
|
||||
|
||||
if (!gst_avdtp_sink_set_device_caps (self->sink, caps))
|
||||
return FALSE;
|
||||
|
||||
g_object_set (self->rtp, "mtu",
|
||||
gst_avdtp_sink_get_link_mtu (self->sink), NULL);
|
||||
|
||||
|
|
|
@ -427,21 +427,6 @@ gst_avdtp_sink_get_device_caps (GstAvdtpSink * sink)
|
|||
return gst_caps_copy (sink->dev_caps);
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_avdtp_sink_set_device_caps (GstAvdtpSink * self, GstCaps * caps)
|
||||
{
|
||||
GST_DEBUG_OBJECT (self, "setting device caps");
|
||||
GST_AVDTP_SINK_MUTEX_LOCK (self);
|
||||
|
||||
if (self->stream_caps)
|
||||
gst_caps_unref (self->stream_caps);
|
||||
self->stream_caps = gst_caps_ref (caps);
|
||||
|
||||
GST_AVDTP_SINK_MUTEX_UNLOCK (self);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
guint
|
||||
gst_avdtp_sink_get_link_mtu (GstAvdtpSink * sink)
|
||||
{
|
||||
|
|
|
@ -74,7 +74,6 @@ struct _GstAvdtpSinkClass
|
|||
GType gst_avdtp_sink_get_type (void);
|
||||
|
||||
GstCaps *gst_avdtp_sink_get_device_caps (GstAvdtpSink * sink);
|
||||
gboolean gst_avdtp_sink_set_device_caps (GstAvdtpSink * sink, GstCaps * caps);
|
||||
|
||||
guint gst_avdtp_sink_get_link_mtu (GstAvdtpSink * sink);
|
||||
|
||||
|
|
Loading…
Reference in a new issue