mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue