mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
parent
fdaf4613d8
commit
99f9f729ff
21 changed files with 70 additions and 21 deletions
|
|
@ -252,7 +252,9 @@ static int do_extension_stream_restore_write(struct client *client, uint32_t com
|
|||
if (name == NULL || name[0] == '\0')
|
||||
return -EPROTO;
|
||||
|
||||
f = open_memstream(&ptr, &size);
|
||||
if ((f = open_memstream(&ptr, &size)) == NULL)
|
||||
return -errno;
|
||||
|
||||
fprintf(f, "{");
|
||||
fprintf(f, " \"mute\": %s", mute ? "true" : "false");
|
||||
if (vol.channels > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue