From 2848c9689f573fc1aca71d7c4bad63a6758a9ee1 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 19 Feb 2014 04:24:08 +0000 Subject: Misc (re #1630): use static variable when registering interruptionListener thread git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4751 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/src/pjmedia-audiodev/coreaudio_dev.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m b/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m index b2206824..f86aaa37 100644 --- a/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m +++ b/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m @@ -1127,7 +1127,7 @@ static void interruptionListener(void *inClientData, UInt32 inInterruption) { struct stream_list *it, *itBegin; pj_status_t status; - pj_thread_desc thread_desc; + static pj_thread_desc thread_desc; pj_thread_t *thread; /* Register the thread with PJLIB, this is must for any external threads -- cgit v1.2.3