]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Implement error checking for the write path.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 24 Aug 2021 12:49:16 +0000 (14:49 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:36 +0000 (21:37 +0200)
commitd440a71683940a58747de6dc32643db452d9cf54
treeb05300387d4df6c9993d5718a54876c027f2e0fc
parent89a8a29712c0d36f69646ace62fd02abe2ce0672
mp4: Implement error checking for the write path.

Although the ->write callback has a return value, it is of unsigned
type and is never checked. Fix this by changing the prototype to
match that of the write(2) system call, check the return value of the
callback in the write_data() wrapper of mp4.c and propagate paraslash
error codes back to aac_afh.c via the public mp4_meta_update().

While at it, handle short writes and EINTR properly, and fix the
indentation of the callback structure in mp4.h.
aac_afh.c
error.h
mp4.c
mp4.h