From 81eb2b020f742fedd83bef939a495eb0ad0de832 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 5 Oct 2009 22:51:14 +0200 Subject: [PATCH] bluez: Fix codec selection on gstream plugin. --- sys/bluez/gstavdtpsink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c index f6bebb1d62..b53c4082ca 100644 --- a/sys/bluez/gstavdtpsink.c +++ b/sys/bluez/gstavdtpsink.c @@ -1073,6 +1073,7 @@ gst_avdtp_sink_configure (GstAvdtpSink * self, GstCaps * caps) req->h.type = BT_REQUEST; req->h.name = BT_SET_CONFIGURATION; req->h.length = sizeof (*req); + memcpy (&req->codec, codec, sizeof (req->codec)); if (codec->type == BT_A2DP_SBC_SINK) ret = gst_avdtp_sink_init_sbc_pkt_conf (self, caps, (void *) &req->codec);