mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
raop: Fix callback call in raop client after auth : only call once everything is freed
This commit is contained in:
parent
0c6678146a
commit
3e66643f50
1 changed files with 3 additions and 2 deletions
|
|
@ -1325,10 +1325,11 @@ static void rtsp_auth_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_st
|
||||||
c->password = NULL;
|
c->password = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->state_callback)
|
|
||||||
c->state_callback((int) PA_RAOP_AUTHENTICATED, c->state_userdata);
|
|
||||||
pa_rtsp_client_free(c->rtsp);
|
pa_rtsp_client_free(c->rtsp);
|
||||||
c->rtsp = NULL;
|
c->rtsp = NULL;
|
||||||
|
/* Ensure everything is cleaned before calling the callback, otherwise it may raise a crash */
|
||||||
|
if (c->state_callback)
|
||||||
|
c->state_callback((int) PA_RAOP_AUTHENTICATED, c->state_userdata);
|
||||||
|
|
||||||
waiting = false;
|
waiting = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue