mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: Handle formats of virtual devices better
Virtual devices tend to start with partial fields set in the EnumFormat param (usually rate is missing). This causes virtual devices to be invisible until they are used in some way. Fix this by relaxing the parsing of EnumFormat and by falling back to the server defaults for the unspecified fields. Fixes #1413
This commit is contained in:
parent
3526e33fe1
commit
a9169cf491
6 changed files with 58 additions and 19 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include <spa/param/bluetooth/audio.h>
|
||||
#include <pipewire/pipewire.h>
|
||||
|
||||
#include "internal.h"
|
||||
#include "format.h"
|
||||
#include "volume.h"
|
||||
|
||||
|
|
@ -79,7 +80,7 @@ struct device_info {
|
|||
}
|
||||
|
||||
void collect_device_info(struct pw_manager_object *device, struct pw_manager_object *card,
|
||||
struct device_info *dev_info, bool monitor);
|
||||
struct device_info *dev_info, bool monitor, struct defs *defs);
|
||||
|
||||
/* ========================================================================== */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue