Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Fix UUID of device sink,source
Browse files Browse the repository at this point in the history
  • Loading branch information
EHfive committed Apr 12, 2019
1 parent 765766c commit 9ff89b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/bluetooth/bluez5-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,13 +1070,13 @@ static void parse_stream_endpoint_properties(pa_bluetooth_stream_endpoint *sep,
bool is_sink;

if(pa_streq(PA_BLUETOOTH_UUID_A2DP_SINK, sep->uuid)){
expected_device_uuid = PA_BLUETOOTH_UUID_A2DP_SOURCE;
is_sink = true;
}
else if(pa_streq(PA_BLUETOOTH_UUID_A2DP_SOURCE, sep->uuid)){
expected_device_uuid = PA_BLUETOOTH_UUID_A2DP_SINK;
is_sink = false;
}
else if(pa_streq(PA_BLUETOOTH_UUID_A2DP_SOURCE, sep->uuid)){
expected_device_uuid = PA_BLUETOOTH_UUID_A2DP_SOURCE;
is_sink = true;
}
else {
pa_log_debug("Unknown sep UUID: %s", sep->uuid);
return;
Expand Down

1 comment on commit 9ff89b4

@EHfive
Copy link
Owner Author

@EHfive EHfive commented on 9ff89b4 Apr 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.