Ignore:
Timestamp:
Jul 21, 2011 10:06:17 AM (13 years ago)
Author:
ming
Message:

Fixed #1335
Fixes assertion when interruptionListener is called from an unregistered thread on iPhone OS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c

    r3553 r3674  
    11121112    struct stream_list *it, *itBegin; 
    11131113    pj_status_t status; 
    1114  
     1114    pj_thread_desc thread_desc; 
     1115    pj_thread_t *thread; 
     1116     
     1117    /* Register the thread with PJLIB, this is must for any external threads 
     1118     * which need to use the PJLIB framework. 
     1119     */ 
     1120    if (!pj_thread_is_registered()) { 
     1121        pj_bzero(thread_desc, sizeof(pj_thread_desc)); 
     1122        status = pj_thread_register("intListener", thread_desc, &thread); 
     1123    } 
     1124     
    11151125    PJ_LOG(3, (THIS_FILE, "Session interrupted! --- %s ---", 
    11161126           inInterruption == kAudioSessionBeginInterruption ? 
Note: See TracChangeset for help on using the changeset viewer.