lavf/dashenc: Write media trailers when DASH trailer is written.
authorAndrey Semashev <andrey.semashev@gmail.com>
Mon, 3 Dec 2018 11:18:31 +0000 (14:18 +0300)
committerKarthick J <kjeyapal@akamai.com>
Tue, 4 Dec 2018 05:04:29 +0000 (10:34 +0530)
commitf176d6587bcf7c15c9d9f1acb05d8f970ade57de
tree17ac52b7d44973b48a0f0de9c2aa2cafe6151b07
parent78c7ff7d250f8c2052b0734549549e628a505cb9
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