diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/alsa/alsa-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/alsa/alsa-device.c b/backends/alsa/alsa-device.c index 03dd7c0..243e4ad 100644 --- a/backends/alsa/alsa-device.c +++ b/backends/alsa/alsa-device.c @@ -669,6 +669,9 @@ add_switch (AlsaDevice *device, AlsaStream *stream, snd_mixer_elem_t *el) g_warning ("Failed to read switch item name: %s", snd_strerror (ret)); } + if G_UNLIKELY (options == NULL) + return FALSE; + get_switch_info (el, &name, &label, &role); /* Takes ownership of options */ |