bluez: Fix codec selection on gstream plugin.
authorLuiz Augusto von Dentz <luiz.dentz@gmail.com>
Mon, 5 Oct 2009 20:51:14 +0000 (22:51 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:12 +0000 (14:30 +0000)
sys/bluez/gstavdtpsink.c

index f6bebb1..b53c408 100644 (file)
@@ -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);