Skip to content

Commit

Permalink
Fix typos, build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz committed Apr 15, 2024
1 parent 77fc8df commit 745d667
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/JNI/com/amazonaws/kinesis/video/producer/jni/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ BOOL setClientInfo(JNIEnv *env, jobject clientInfo, PClientInfo pClientInfo) {
return STATUS_FAILED(retStatus) ? FALSE : TRUE;
}

VOID setKvsRetryStrategy(JNIEnv *env, jobject kvsRetryStrategyCallbacks, PKvsRetryStrategy pKvsRetryStrategy)
VOID setKvsRetryStrategy(JNIEnv *env, jobject kvsRetryStrategy, PKvsRetryStrategy pKvsRetryStrategy)
{
jmethodID methodId = NULL;
jclass cls = NULL;
Expand All @@ -312,23 +312,23 @@ VOID setKvsRetryStrategy(JNIEnv *env, jobject kvsRetryStrategyCallbacks, PKvsRet
methodId = env->GetMethodID(cls, "getRetryStrategy", "()Lcom/amazonaws/kinesisvideo/producer/RetryStrategy");
if (methodId == NULL) {
DLOGW("Couldn't find method id getRetryStrategy, setting pRetryStrategy to null.");
pkvsRetryStrategy->pRetryStrategy = NULL;
pKvsRetryStrategy->pRetryStrategy = NULL;
} else {
// Set to Java class or member once we implement Java support.
}

methodId = env->GetMethodID(cls, "getRetryStrategyConfig", "()Lcom/amazonaws/kinesisvideo/producer/RetryStrategyConfig");
if (methodId == NULL) {
DLOGW("Couldn't find method id getRetryStrategyConfig, setting pRetryStrategyConfig to null.");
pkvsRetryStrategy->pRetryStrategyConfig = NULL;
pKvsRetryStrategy->pRetryStrategyConfig = NULL;
} else {
// Set to Java class or member once we implement Java support.
}

methodId = env->GetMethodID(cls, "getretryStrategyType", "()Lcom/amazonaws/kinesisvideo/producer/RetryStrategyType");
if (methodId == NULL) {
DLOGW("Couldn't find method id getretryStrategyType, setting retryStrategyType to EXPONENTIAL_BACKOFF_WAIT.");
pkvsRetryStrategy->pRetryStrategy = KVS_RETRY_STRATEGY_EXPONENTIAL_BACKOFF_WAIT;
pKvsRetryStrategy->pRetryStrategy = NULL;
} else {
// Set to Java class or member once we implement Java support.
}
Expand All @@ -337,9 +337,9 @@ VOID setKvsRetryStrategy(JNIEnv *env, jobject kvsRetryStrategyCallbacks, PKvsRet
CleanUp:
if (nullKvsRetryStrategy) {
DLOGI("Setting kvsRetryStrategy members to NULL/default values.");
pkvsRetryStrategy->pRetryStrategy = NULL;
pkvsRetryStrategy->pRetryStrategyConfig = NULL;
pkvsRetryStrategy->pRetryStrategy = KVS_RETRY_STRATEGY_EXPONENTIAL_BACKOFF_WAIT;
pKvsRetryStrategy->pRetryStrategy = NULL;
pKvsRetryStrategy->pRetryStrategyConfig = NULL;
pKvsRetryStrategy->pRetryStrategy = NULL;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ BOOL releaseStreamDataBuffer(JNIEnv* env, jobject dataBuffer, UINT32 offset, PBY
BOOL setTags(JNIEnv *env, jobjectArray tagArray, PTag* ppTags, PUINT32 pTagCount);
VOID releaseTags(PTag tags);
VOID setKvsRetryStrategyCallbacks(JNIEnv *env, jobject kvsRetryStrategyCallbacks, PKvsRetryStrategyCallbacks pKvsRetryStrategyCallbacks);
VOID setKvsRetryStrategy(JNIEnv *env, jobject kvsRetryStrategyCallbacks, PKvsRetryStrategy pKvsRetryStrategy);

#endif // __KINESIS_VIDEO_PARAMETERS_CONVERSION_H__

0 comments on commit 745d667

Please sign in to comment.