Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marijn Suijten
pulseaudio
Commits
3e66643f
Commit
3e66643f
authored
Oct 24, 2019
by
ckdo
Committed by
Georg Chini
Dec 22, 2019
Browse files
raop: Fix callback call in raop client after auth : only call once everything is freed
parent
0c667814
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/raop/raop-client.c
View file @
3e66643f
...
...
@@ -1325,10 +1325,11 @@ static void rtsp_auth_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_st
c
->
password
=
NULL
;
}
if
(
c
->
state_callback
)
c
->
state_callback
((
int
)
PA_RAOP_AUTHENTICATED
,
c
->
state_userdata
);
pa_rtsp_client_free
(
c
->
rtsp
);
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
;
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment