mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-07 04:06:12 -05:00
pulse-server: put valid volume in sample info
This commit is contained in:
parent
44cad2d533
commit
dcc5779cd6
2 changed files with 11 additions and 1 deletions
|
|
@ -4004,7 +4004,9 @@ static uint64_t bytes_to_usec(uint64_t length, const struct sample_spec *ss)
|
|||
static int fill_sample_info(struct client *client, struct message *m,
|
||||
struct sample *sample)
|
||||
{
|
||||
struct volume vol = VOLUME_INIT;
|
||||
struct volume vol;
|
||||
|
||||
volume_make(&vol, sample->ss.channels);
|
||||
|
||||
message_put(m,
|
||||
TAG_U32, sample->index,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue