Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,12 @@ void KinesisVideoClientWrapper::putKinesisVideoFrame(jlong streamHandle, jobject

PStreamInfo pStreamInfo;
UINT32 zeroCount = 0;
::kinesisVideoStreamGetStreamInfo(streamHandle, &pStreamInfo);
retStatus = ::kinesisVideoStreamGetStreamInfo(streamHandle, &pStreamInfo);
if (STATUS_FAILED(retStatus)) {
DLOGE("Failed to get stream info with status code 0x%08x", retStatus);
throwNativeException(env, EXCEPTION_NAME, "Failed to get stream info", retStatus);
return;
}

if ((pStreamInfo->streamCaps.nalAdaptationFlags & NAL_ADAPTATION_ANNEXB_NALS) != NAL_ADAPTATION_FLAG_NONE) {
// In some devices encoder would generate annexb frames with more than 3 trailing zeros
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ public void putFrame(final long streamHandle, final @Nonnull KinesisVideoFrame k
{
Preconditions.checkState(isInitialized());
Preconditions.checkNotNull(kinesisVideoFrame);
Preconditions.checkArgument(mKinesisVideoHandleMap.containsKey(streamHandle), "StreamHandle 0x" + Long.toHexString(streamHandle) + " is not valid!");

putKinesisVideoFrame(mClientHandle, streamHandle, kinesisVideoFrame);
}
Expand Down
Loading
Loading