Open disa6302 opened 11 months ago
Attention: 1 lines
in your changes are missing coverage. Please review.
Comparison is base (
792e0db
) 80.42% compared to head (3e0f3d3
) 80.42%.:exclamation: Current head 3e0f3d3 differs from pull request most recent head 5c89a59. Consider uploading reports for the commit 5c89a59 to get more accurate results
Files | Patch % | Lines |
---|---|---|
src/client/src/Stream.c | 85.71% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issue #, if available:
Description of changes: When
getStreamData
is invoked, we have checks in place to see if the stop streaming was requested from the application. If so, we set status EOS and signal thestop()
call to terminate streaming. However, these checks are limited to the UPLOAD HANDLE state being in READY state or TERMINATED state. In case of an error, if the application requests that streaming be stopped and no frames are actively being put into the buffer, and we get into the STREAMING state transition, the stop() call times out because as per the SDK, we are in active streaming state. This PR fixes the issue by including handling for the streaming state. If the stop stream is requested and there are no more frames in the buffer, we allow stop() to terminate gracefully.Testing:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.