segment: Report the current media sequence
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 29 Apr 2014 08:28:11 +0000 (10:28 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 30 Apr 2014 15:52:03 +0000 (17:52 +0200)
Useful for debugging mostly.

libavformat/segment.c

index 390263c..3e0eb39 100644 (file)
@@ -95,6 +95,9 @@ static int segment_hls_window(AVFormatContext *s, int last)
     avio_printf(seg->pb, "#EXT-X-MEDIA-SEQUENCE:%d\n",
                 FFMAX(0, seg->number - seg->size));
 
+    av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%d\n",
+           FFMAX(0, seg->number - seg->size));
+
     for (i = FFMAX(0, seg->number - seg->size);
          i < seg->number; i++) {
         avio_printf(seg->pb, "#EXTINF:%d,\n", (int)seg->time);