techyian / MMALSharp

C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
MIT License
195 stars 33 forks source link

InputStreamCaptureHandler read value check #121

Closed techyian closed 4 years ago

techyian commented 4 years ago

In InputStreamCaptureHandler, the value of read should check if it is 0 instead of less than the allocSize. This is related to #119 which causes the Input feed to send the EOF command and therefore completes the TaskCompletionSource. Checked this doesn't have any adverse effects when sending data from a file stream.