lavf/dashenc: Write media trailers when DASH trailer is written.
authorAndrey Semashev <andrey.semashev@gmail.com>
Thu, 29 Nov 2018 18:28:32 +0000 (21:28 +0300)
committerKarthick J <kjeyapal@akamai.com>
Mon, 3 Dec 2018 05:24:47 +0000 (10:54 +0530)
commite444b3b184f36e3c97bb3489822f6b05ccb848a8
tree81502c015399ee54799f36cf31d64c74b7b85a61
parent0a80b39780c279b4e7f83d45ab15f6e84f143408
lavf/dashenc: Write media trailers when DASH trailer is written.

This commit ensures that all (potentially, long) filesystem activity is
performed when the user calls av_write_trailer on the DASH libavformat
context, not when freeing the context. Also, this defers media segment
deletion until after the media trailers are written.
libavformat/dashenc.c