GetRemoteParams returns null if needed

This commit is contained in:
Sylvain Berfini 2012-09-20 17:59:02 +02:00
parent c0bac6ef47
commit c8fe3f1d98
2 changed files with 6 additions and 2 deletions

View file

@ -76,7 +76,11 @@ class LinphoneCallImpl implements LinphoneCall {
return new LinphoneCallParamsImpl(getCurrentParamsCopy(nativePtr));
}
public LinphoneCallParams getRemoteParams() {
return new LinphoneCallParamsImpl(getRemoteParams(nativePtr));
long remoteParamsPtr = getRemoteParams(nativePtr);
if (remoteParamsPtr == 0) {
return null;
}
return new LinphoneCallParamsImpl(remoteParamsPtr);
}
public void enableCamera(boolean enabled) {
enableCamera(nativePtr, enabled);

@ -1 +1 @@
Subproject commit a1961faa44b1306e5c04285a00ec98ccd9328ff9
Subproject commit b94ed904fdfda543a16a6297014f8ff6aff4e876