mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-22 06:59:54 -05:00
if no thread-mq is attached to the current thread, return an error, don't hit an assert
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1625 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3eae9038eb
commit
4e145b676a
1 changed files with 1 additions and 4 deletions
|
|
@ -110,10 +110,7 @@ void pa_thread_mq_install(pa_thread_mq *q) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pa_thread_mq *pa_thread_mq_get(void) {
|
pa_thread_mq *pa_thread_mq_get(void) {
|
||||||
pa_thread_mq *q;
|
|
||||||
|
|
||||||
pa_run_once(&once, init_tls);
|
pa_run_once(&once, init_tls);
|
||||||
pa_assert_se(q = pa_tls_get(tls));
|
return pa_tls_get(tls);
|
||||||
return q;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue