mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-12-11 15:10:21 +00:00
mixer-control: fix -Wswitch-enum warnings
Warnings introduced in ec5cf3e0de
:
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]
This commit is contained in:
parent
02cab4d3a3
commit
342e366ede
@ -1461,7 +1461,9 @@ translate_pa_state (pa_sink_state_t state) {
|
|||||||
return GVC_STREAM_STATE_IDLE;
|
return GVC_STREAM_STATE_IDLE;
|
||||||
case PA_SINK_SUSPENDED:
|
case PA_SINK_SUSPENDED:
|
||||||
return GVC_STREAM_STATE_SUSPENDED;
|
return GVC_STREAM_STATE_SUSPENDED;
|
||||||
|
case PA_SINK_INIT:
|
||||||
case PA_SINK_INVALID_STATE:
|
case PA_SINK_INVALID_STATE:
|
||||||
|
case PA_SINK_UNLINKED:
|
||||||
default:
|
default:
|
||||||
return GVC_STREAM_STATE_INVALID;
|
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-output-speaker", TRUE);
|
||||||
gvc_mixer_control_set_port_status_for_headset (control, id, "analog-input-headphone-mic", FALSE);
|
gvc_mixer_control_set_port_status_for_headset (control, id, "analog-input-headphone-mic", FALSE);
|
||||||
break;
|
break;
|
||||||
|
case GVC_HEADSET_PORT_CHOICE_NONE:
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user