output/raop: add missing mutex unlock call in error handler
This commit is contained in:
parent
b159bc0c5f
commit
0035dceb0a
@ -1287,6 +1287,7 @@ raop_output_open(void *data, struct audio_format *audio_format, GError **error_r
|
|||||||
if ((raop_session->ctrl.fd = open_udp_socket(NULL, &raop_session->ctrl.port)) == -1) {
|
if ((raop_session->ctrl.fd = open_udp_socket(NULL, &raop_session->ctrl.port)) == -1) {
|
||||||
close(raop_session->ntp.fd);
|
close(raop_session->ntp.fd);
|
||||||
raop_session->ctrl.fd = -1;
|
raop_session->ctrl.fd = -1;
|
||||||
|
pthread_mutex_unlock(&raop_session->list_mutex);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1363,6 +1364,7 @@ raop_output_play(void *data, const void *chunk, size_t size,
|
|||||||
iter = raop_session->raop_list;
|
iter = raop_session->raop_list;
|
||||||
while (iter) {
|
while (iter) {
|
||||||
if (!send_control_command(&raop_session->ctrl, iter, &raop_session->play_state)) {
|
if (!send_control_command(&raop_session->ctrl, iter, &raop_session->play_state)) {
|
||||||
|
pthread_mutex_unlock(&raop_session->list_mutex);
|
||||||
g_set_error(error_r, raop_output_quark(), -1,
|
g_set_error(error_r, raop_output_quark(), -1,
|
||||||
"Unable to send control command");
|
"Unable to send control command");
|
||||||
goto erexit;
|
goto erexit;
|
||||||
|
Loading…
Reference in New Issue
Block a user