mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
bluetooth: Use assertions when setting off profile
Setting the card profile to off cannot fail, therefore assertions can be used when calling pa_card_set_profile().
This commit is contained in:
parent
97f2d6b347
commit
8b1236531e
1 changed files with 1 additions and 2 deletions
|
|
@ -605,8 +605,7 @@ static int device_process_msg(pa_msgobject *obj, int code, void *data, int64_t o
|
||||||
|
|
||||||
pa_log_debug("Switching the profile to off due to IO thread failure.");
|
pa_log_debug("Switching the profile to off due to IO thread failure.");
|
||||||
|
|
||||||
if (pa_card_set_profile(u->card, "off", FALSE) < 0)
|
pa_assert_se(pa_card_set_profile(u->card, "off", false) >= 0);
|
||||||
pa_log_debug("Failed to switch profile to off");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue