mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
media-session: Fix saved_profile check
ID_INVALID is when the profile was not saved.
This commit is contained in:
parent
c067fd0a20
commit
5ae92fd643
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ static int handle_profile(struct device *dev)
|
|||
dev->name, pr.name);
|
||||
|
||||
dev->restored = false;
|
||||
} else if (dev->saved_profile && pr.index != dev->saved_profile) {
|
||||
} else if (dev->saved_profile != SPA_ID_INVALID && pr.index != dev->saved_profile) {
|
||||
struct profile saved;
|
||||
/* we had a saved profile but we're on some other profile,
|
||||
* see if the saved profile is available now and switch to it */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue