Changeset 5030 for pjproject/trunk/pjsip-apps/src/pjsua/android/jni
- Timestamp:
- Mar 26, 2015 10:06:45 AM (10 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/pjsua/android/jni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/android/jni/pjsua.i
r5014 r5030 5 5 #include "../../pjsua_app.h" 6 6 #include <android/native_window_jni.h> 7 8 #ifdef __cplusplus9 extern "C" {10 #endif11 int pjsuaStart();12 void pjsuaDestroy();13 int pjsuaRestart();14 void setCallbackObject(PjsuaAppCallback* callback);15 #ifdef __cplusplus16 }17 #endif18 7 %} 19 8 … … 23 12 /* Convert Surface object to ANativeWindow for setIncomingVideoRenderer() */ 24 13 %typemap(in) jobject surface { 25 $1 = (jobject)ANativeWindow_fromSurface(jenv, $input);14 $1 = $input? (jobject)ANativeWindow_fromSurface(jenv, $input) : NULL; 26 15 } 27 16 -
pjproject/trunk/pjsip-apps/src/pjsua/android/jni/pjsua_app_callback.cpp
r5014 r5030 46 46 static void on_call_media_state(pjsua_call_id call_id) 47 47 { 48 #if PJMEDIA_HAS_VIDEO 48 49 pjsua_call_info call_info; 49 50 unsigned mi; 50 pj_bool_t has_error = PJ_FALSE;51 51 52 52 pjsua_call_get_info(call_id, &call_info); … … 68 68 } 69 69 } 70 #endif 70 71 71 72 /* Forward to original callback */
Note: See TracChangeset
for help on using the changeset viewer.