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:
Alexander Couzens 2013-09-16 13:06:34 +02:00 committed by Tanu Kaskinen
parent 798525bf16
commit 0c3f3934f5

View file

@ -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;
}
}