awslabs / amazon-kinesis-video-streams-pic

Apache License 2.0
47 stars 47 forks source link

[BUG] getStreamUploadInfo misuse #119

Closed Nomidia closed 3 years ago

Nomidia commented 3 years ago

It seems that another function should be used.

https://github.com/awslabs/amazon-kinesis-video-streams-pic/blob/b12814a0347df7085d18b203f1ad03f3b5c48ef0/src/client/src/StreamEvent.c#L698

/**
 * Gets the first upload handle info corresponding to the state and NULL otherwise
 */
PUploadHandleInfo getStreamUploadInfoWithState(PKinesisVideoStream, UINT32);

/**
 * Gets the upload handle info corresponding to the specified handle and NULL otherwise
 */
PUploadHandleInfo getStreamUploadInfo(PKinesisVideoStream, UPLOAD_HANDLE);
MushMal commented 3 years ago

Oh WOW! Thanks for reporting this. Will send a fix immediately