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.
This commit is contained in:
Luiz Augusto von Dentz 2009-03-19 16:16:19 -03:00 committed by Tim-Philipp Müller
parent 08dd7e709d
commit 08837565fa

View file

@ -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;