mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
tunnel-sink-new: remove switch-default from state change callbacks
Using default sections for switch(state) in state change callbacks will prevent useful compiler warnings for non-handled cases
This commit is contained in:
parent
798525bf16
commit
0c3f3934f5
1 changed files with 2 additions and 3 deletions
|
|
@ -245,7 +245,8 @@ static void stream_state_cb(pa_stream *stream, void *userdata) {
|
|||
sink_update_requested_latency_cb(u->sink);
|
||||
else
|
||||
stream_changed_buffer_attr_cb(stream, userdata);
|
||||
default:
|
||||
case PA_STREAM_CREATING:
|
||||
case PA_STREAM_UNCONNECTED:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -333,8 +334,6 @@ static void context_state_cb(pa_context *c, void *userdata) {
|
|||
u->connected = false;
|
||||
u->thread_mainloop_api->quit(u->thread_mainloop_api, TUNNEL_THREAD_FAILED_MAINLOOP);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue