if no thread-mq is attached to the current thread, return an error, don't hit an...
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Aug 2007 23:40:05 +0000 (23:40 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Aug 2007 23:40:05 +0000 (23:40 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1625 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/thread-mq.c

index 224a14c..89b65e5 100644 (file)
@@ -110,10 +110,7 @@ void pa_thread_mq_install(pa_thread_mq *q) {
 }
 
 pa_thread_mq *pa_thread_mq_get(void) {
-    pa_thread_mq *q;
-
     pa_run_once(&once, init_tls);
-    pa_assert_se(q = pa_tls_get(tls));
-    return q;
+    return pa_tls_get(tls);
 }