mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
pactl: SUBSCRIBE add a newline after every json message
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/748>
This commit is contained in:
parent
68a0603d76
commit
45df212d66
1 changed files with 1 additions and 1 deletions
|
|
@ -2200,7 +2200,7 @@ static void context_subscribe_callback(pa_context *c, pa_subscription_event_type
|
||||||
pa_json_encoder_end_object(encoder);
|
pa_json_encoder_end_object(encoder);
|
||||||
|
|
||||||
char* json_str = pa_json_encoder_to_string_free(encoder);
|
char* json_str = pa_json_encoder_to_string_free(encoder);
|
||||||
printf("%s", json_str);
|
printf("%s\n", json_str);
|
||||||
pa_xfree(json_str);
|
pa_xfree(json_str);
|
||||||
} else {
|
} else {
|
||||||
printf(_("Event '%s' on %s #%u\n"),
|
printf(_("Event '%s' on %s #%u\n"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue