summaryrefslogtreecommitdiff
path: root/libavformat/dashenc.c
diff options
context:
space:
mode:
authorKarthick Jeyapal <kjeyapal@akamai.com>2018-01-02 13:49:57 +0530
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-01-26 07:26:09 +0530
commit18e2ac032e9d7258e57ec033962fca665f2a0be5 (patch)
tree472b157e6f674bdd194fef3c43ed79d89c17c59d /libavformat/dashenc.c
parent0df9d0f4cbcb18006f9fde0502671f9ef293e2f2 (diff)
avformat/dashenc: Signal http end of chunk(http_shutdown) explicitly
Currently http end of chunk is signalled implicitly in dashenc_io_open(). This mean playlists http writes would have to wait upto a segment duration to signal end of chunk causing delays. This patch will fix that problem and improve performance.
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r--libavformat/dashenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 38cc592cde..d1e4d7466a 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -149,7 +149,10 @@ static void dashenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filenam
ff_format_io_close(s, pb);
#if CONFIG_HTTP_PROTOCOL
} else {
+ URLContext *http_url_context = ffio_geturlcontext(*pb);
+ av_assert0(http_url_context);
avio_flush(*pb);
+ ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE);
#endif
}
}