diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-12-25 19:14:19 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-04-09 13:53:36 +0000 |
commit | 342e366eded97df48cef61b71bfd6b3481c69f06 (patch) | |
tree | 158497c5f252c66c9a1159e5560fbd349557ed03 | |
parent | 02cab4d3a374f2caf833161e458d609c264f5622 (diff) | |
download | libgnome-volume-control-342e366eded97df48cef61b71bfd6b3481c69f06.tar.gz |
mixer-control: fix -Wswitch-enum warnings
Warnings introduced in ec5cf3e0de6715803e64b65abb059e2155b3d6de:
gvc-mixer-control.c:1457:9: warning: enumeration value ‘PA_SINK_INIT’ not handled in switch [-Wswitch-enum]
gvc-mixer-control.c:1457:9: warning: enumeration value ‘PA_SINK_UNLINKED’ not handled in switch [-Wswitch-enum]
Warning building with alsa:
gvc-mixer-control.c:2218:9: warning: enumeration value ‘GVC_HEADSET_PORT_CHOICE_NONE’ not handled in switch [-Wswitch-enum]
-rw-r--r-- | gvc-mixer-control.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gvc-mixer-control.c b/gvc-mixer-control.c index 21fc233..04644d7 100644 --- a/gvc-mixer-control.c +++ b/gvc-mixer-control.c @@ -1461,7 +1461,9 @@ translate_pa_state (pa_sink_state_t state) { return GVC_STREAM_STATE_IDLE; case PA_SINK_SUSPENDED: return GVC_STREAM_STATE_SUSPENDED; + case PA_SINK_INIT: case PA_SINK_INVALID_STATE: + case PA_SINK_UNLINKED: default: return GVC_STREAM_STATE_INVALID; } @@ -2228,6 +2230,7 @@ gvc_mixer_control_set_headset_port (GvcMixerControl *control, gvc_mixer_control_set_port_status_for_headset (control, id, "analog-output-speaker", TRUE); gvc_mixer_control_set_port_status_for_headset (control, id, "analog-input-headphone-mic", FALSE); break; + case GVC_HEADSET_PORT_CHOICE_NONE: default: g_assert_not_reached (); } |