mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: improve warning
This commit is contained in:
parent
b4f359ed77
commit
0bf7b07d91
1 changed files with 8 additions and 2 deletions
|
|
@ -3455,7 +3455,10 @@ static int fill_sink_info(struct client *client, struct message *m,
|
||||||
if (!sample_spec_valid(&dev_info.ss) ||
|
if (!sample_spec_valid(&dev_info.ss) ||
|
||||||
!channel_map_valid(&dev_info.map) ||
|
!channel_map_valid(&dev_info.map) ||
|
||||||
!volume_valid(&dev_info.volume_info.volume)) {
|
!volume_valid(&dev_info.volume_info.volume)) {
|
||||||
pw_log_warn("%d: not ready", o->id);
|
pw_log_warn("%d: sink not ready: sample:%d map:%d volume:%d",
|
||||||
|
o->id, sample_spec_valid(&dev_info.ss),
|
||||||
|
channel_map_valid(&dev_info.map),
|
||||||
|
volume_valid(&dev_info.volume_info.volume));
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3595,7 +3598,10 @@ static int fill_source_info(struct client *client, struct message *m,
|
||||||
if (!sample_spec_valid(&dev_info.ss) ||
|
if (!sample_spec_valid(&dev_info.ss) ||
|
||||||
!channel_map_valid(&dev_info.map) ||
|
!channel_map_valid(&dev_info.map) ||
|
||||||
!volume_valid(&dev_info.volume_info.volume)) {
|
!volume_valid(&dev_info.volume_info.volume)) {
|
||||||
pw_log_warn("%d: not ready", o->id);
|
pw_log_warn("%d: source not ready: sample:%d map:%d volume:%d",
|
||||||
|
o->id, sample_spec_valid(&dev_info.ss),
|
||||||
|
channel_map_valid(&dev_info.map),
|
||||||
|
volume_valid(&dev_info.volume_info.volume));
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue