Ignore:
Timestamp:
Apr 15, 2019 10:52:16 AM (6 years ago)
Author:
nanang
Message:

Close #2189: fixed PJSUA2 thread safety issue in list of objects manipulation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/app/MyApp.java

    r5952 r5969  
    9898                        pjsua_call_media_status.PJSUA_CALL_MEDIA_REMOTE_HOLD)) 
    9999            { 
    100                 // unfortunately, on Java too, the returned Media cannot be 
    101                 // downcasted to AudioMedia  
    102                 Media m = getMedia(i); 
    103                 AudioMedia am = AudioMedia.typecastFromMedia(m); 
    104  
    105100                // connect ports 
    106101                try { 
     102                    AudioMedia am = getAudioMedia(i); 
    107103                    MyApp.ep.audDevManager().getCaptureDevMedia(). 
    108104                                                            startTransmit(am); 
     
    110106                                     getPlaybackDevMedia()); 
    111107                } catch (Exception e) { 
     108                    System.out.println("Failed connecting media ports" + 
     109                                       e.getMessage()); 
    112110                    continue; 
    113111                } 
Note: See TracChangeset for help on using the changeset viewer.