From 08837565fac098df22fc403b4b3f304814eb9eba Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 19 Mar 2009 16:16:19 -0300 Subject: [PATCH] bluez: Add lock flag for capabilities. lock flag permits the unix client to detect if there is someone holding the lock so it can prevent useless attempt of setting a new configuration. --- sys/bluez/gstavdtpsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c index 8b57346..702f4ae 100644 --- a/sys/bluez/gstavdtpsink.c +++ b/sys/bluez/gstavdtpsink.c @@ -252,7 +252,7 @@ gst_avdtp_find_caps (GstAvdtpSink * sink, uint8_t codec_type) int bytes_left = rsp->h.length - sizeof (*rsp); while (bytes_left > 0) { - if (codec->type == codec_type) + if ((codec->type == codec_type) && !(codec->lock & BT_WRITE_LOCK)) break; bytes_left -= codec->length; -- 2.7.4