mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
dbusiface-card: Assert that the profiles list is empty if there's no active
profile.
This commit is contained in:
parent
18f9f1b5d1
commit
31c544d843
1 changed files with 2 additions and 0 deletions
|
|
@ -336,6 +336,8 @@ static void handle_set_active_profile(DBusConnection *conn, DBusMessage *msg, vo
|
|||
return;
|
||||
|
||||
if (!c->active_profile) {
|
||||
pa_assert(pa_hashmap_isempty(c->profiles));
|
||||
|
||||
pa_dbus_send_error(conn, msg, PA_DBUS_ERROR_NO_SUCH_PROPERTY,
|
||||
"The card %s has no profiles, and therefore there's no active profile either.",
|
||||
c->card->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue