From 344f7b5a7e0d50573dec402dfe6228676f3889d9 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 29 Apr 2014 10:07:03 +0200 Subject: hls: Report the current media sequence Useful for debugging mostly. --- libavformat/hlsenc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/hlsenc.c') diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 6d6caa1013..2f370ed771 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -147,6 +147,9 @@ static int hls_window(AVFormatContext *s, int last) avio_printf(hls->pb, "#EXT-X-MEDIA-SEQUENCE:%"PRId64"\n", FFMAX(0, hls->sequence - hls->size)); + av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%"PRId64"\n", + FFMAX(0, hls->sequence - hls->size)); + for (en = hls->list; en; en = en->next) { avio_printf(hls->pb, "#EXTINF:%d,\n", en->duration); if (hls->baseurl) -- cgit v1.2.3