projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c66781
)
raop: Fix callback call in raop client after auth : only call once everything is...
author
ckdo
<chrisrodri@free.fr>
Thu, 24 Oct 2019 14:07:20 +0000
(16:07 +0200)
committer
Georg Chini
<georg@chini.tk>
Sun, 22 Dec 2019 09:43:14 +0000
(09:43 +0000)
src/modules/raop/raop-client.c
patch
|
blob
|
history
diff --git
a/src/modules/raop/raop-client.c
b/src/modules/raop/raop-client.c
index
9093252
..
e4dc9ea
100644
(file)
--- a/
src/modules/raop/raop-client.c
+++ b/
src/modules/raop/raop-client.c
@@
-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;