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:
parent
08dd7e709d
commit
08837565fa
@ -252,7 +252,7 @@ gst_avdtp_find_caps (GstAvdtpSink * sink, uint8_t codec_type)
|
|||||||
int bytes_left = rsp->h.length - sizeof (*rsp);
|
int bytes_left = rsp->h.length - sizeof (*rsp);
|
||||||
|
|
||||||
while (bytes_left > 0) {
|
while (bytes_left > 0) {
|
||||||
if (codec->type == codec_type)
|
if ((codec->type == codec_type) && !(codec->lock & BT_WRITE_LOCK))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
bytes_left -= codec->length;
|
bytes_left -= codec->length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user