Ignore:
Timestamp:
Mar 26, 2015 10:06:45 AM (9 years ago)
Author:
nanang
Message:

Re #1790: Misc fixes on renderer viewing in pjsua CLI app sample, e.g: handle NULL surface, handle video disabled, cleanup unused codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/android/jni/pjsua.i

    r5014 r5030  
    55#include "../../pjsua_app.h" 
    66#include <android/native_window_jni.h> 
    7  
    8 #ifdef __cplusplus 
    9 extern "C" { 
    10 #endif 
    11         int pjsuaStart(); 
    12         void pjsuaDestroy(); 
    13         int pjsuaRestart(); 
    14         void setCallbackObject(PjsuaAppCallback* callback);      
    15 #ifdef __cplusplus 
    16 } 
    17 #endif 
    187%} 
    198 
     
    2312/* Convert Surface object to ANativeWindow for setIncomingVideoRenderer() */ 
    2413%typemap(in) jobject surface { 
    25     $1 = (jobject)ANativeWindow_fromSurface(jenv, $input); 
     14    $1 = $input? (jobject)ANativeWindow_fromSurface(jenv, $input) : NULL; 
    2615} 
    2716 
Note: See TracChangeset for help on using the changeset viewer.