Allow Video Callback to Fail

This commit is contained in:
Florian Märkl 2019-11-01 17:00:28 +01:00
commit 34b7d61295
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
8 changed files with 33 additions and 16 deletions

View file

@ -152,8 +152,9 @@ typedef void (*ChiakiEventCallback)(ChiakiEvent *event, void *user);
/**
* buf will always have an allocated padding of at least CHIAKI_VIDEO_BUFFER_PADDING_SIZE after buf_size
* @return whether the sample was successfully pushed into the decoder. On false, a corrupt frame will be reported to get a new keyframe.
*/
typedef void (*ChiakiVideoSampleCallback)(uint8_t *buf, size_t buf_size, void *user);
typedef bool (*ChiakiVideoSampleCallback)(uint8_t *buf, size_t buf_size, void *user);