diff options
author | Colomban Wendling <[email protected]> | 2025-02-04 17:59:19 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-02-17 18:28:54 +0000 |
commit | a2b5941a6120c9aa0bfba03603147171e1cdec74 (patch) | |
tree | ee379efc9f2fb0f7a4ee61fd35e381f953aac811 | |
parent | dfb3970eaab0138805faf32338ab08e1e18ebca2 (diff) | |
download | libmatemixer-a2b5941a6120c9aa0bfba03603147171e1cdec74.tar.bz2 libmatemixer-a2b5941a6120c9aa0bfba03603147171e1cdec74.tar.xz |
Although the documentation isn't very verbose, pactl handles this case
like this, so a NULL info is likely a valid result of this call upon
failure.
Most of the code is actually just copied over from pactl.c itself,
there wasn't much more to it.
Part-of: mate-desktop/mate-media#159
-rw-r--r-- | backends/pulse/pulse-connection.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/pulse/pulse-connection.c b/backends/pulse/pulse-connection.c index b8ca8c5..6a745f8 100644 --- a/backends/pulse/pulse-connection.c +++ b/backends/pulse/pulse-connection.c @@ -1467,6 +1467,11 @@ pulse_server_info_cb (pa_context *c, { PulseConnection *connection; + if (! info) { + g_warning ("Failed to get PulseAudio server information: %s", pa_strerror (pa_context_errno (c))); + return; + } + connection = PULSE_CONNECTION (userdata); g_signal_emit (G_OBJECT (connection), |