]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp4: Remove ->error of struct mp4.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 18 Aug 2021 16:08:38 +0000 (18:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
commit09a7e73ecbb54dc8d4877aa28a4f5b0591475861
tree11f0c40e2a2e9905d973fd077571fec89373f5ec
parent662fbe85190d071f2d4b839d0ab8440920e8d47d
mp4: Remove ->error of struct mp4.

It's easier to have track_add(), the only function which sets ->error,
return an integer error code instead. Since track_add() is simple
and is only called by parse_sub_atoms(), open-code the logic there.

Also, don't reset ->total_tracks on errors because this leads to a
memory leak, don't increase the track counter on errors and remove
the comment which only states what is obvious.
mp4.c