bluez: Add source and destination fields to audio ipc messages.

This commit is contained in:
Luiz Augusto von Dentz 2009-03-19 11:50:26 -03:00 committed by Tim-Philipp Müller
parent 1f8330784a
commit 35e57f99f0

View file

@ -769,7 +769,7 @@ gst_avdtp_sink_get_capabilities (GstAvdtpSink * self)
if (self->device == NULL) if (self->device == NULL)
return FALSE; return FALSE;
strncpy (req->device, self->device, 18); strncpy (req->destination, self->device, 18);
if (self->autoconnect) if (self->autoconnect)
req->flags |= BT_FLAG_AUTOCONNECT; req->flags |= BT_FLAG_AUTOCONNECT;
@ -1043,7 +1043,7 @@ gst_avdtp_sink_configure (GstAvdtpSink * self, GstCaps * caps)
req->h.length = sizeof (*req); req->h.length = sizeof (*req);
req->access_mode = BT_CAPABILITIES_ACCESS_MODE_WRITE; req->access_mode = BT_CAPABILITIES_ACCESS_MODE_WRITE;
strncpy (req->device, self->device, 18); strncpy (req->destination, self->device, 18);
structure = gst_caps_get_structure (caps, 0); structure = gst_caps_get_structure (caps, 0);
if (gst_structure_has_name (structure, "audio/x-sbc")) if (gst_structure_has_name (structure, "audio/x-sbc"))