card: Only update port's preferred profile if profile is saved
authorDavid Henningsson <david.henningsson@canonical.com>
Thu, 26 Nov 2015 13:29:23 +0000 (14:29 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 27 Nov 2015 13:27:26 +0000 (14:27 +0100)
commitcd46a4ef06a5805886691b671b036c95fa0419ac
treec041473205933559bc6ffcfe0d047dc77cacd39d
parent55f065301a58d8d9ced5016e1dd2ebd7a591348a
card: Only update port's preferred profile if profile is saved

In case pa_card_set_profile is called with save=false, then probably
it makes more sense not to update the port's preferred profile as well.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/card.c