diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-29 21:05:43 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-29 21:26:26 +0300 |
commit | 606702ea348301e3daa97f578982f6614fa4c4bd (patch) | |
tree | bcefe73b16b9702e96384f45cc18bf1c96d1a5a9 /ffserver.c | |
parent | 472fee91bcf9b7bae81fd4c00bbe5151ca458a7c (diff) |
ffsrever: Make the status page bitexact if any stream is bitexact
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ffserver.c b/ffserver.c index 9b1f6d5591..20f5995d25 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1987,7 +1987,9 @@ static void compute_status(HTTPContext *c) sfilename, stream->filename); avio_printf(pb, "<td align=right> %d <td align=right> ", stream->conns_served); - fmt_bytecount(pb, stream->bytes_served); + // TODO: Investigate if we can make http bitexact so it always produces the same count of bytes + if (!config.bitexact) + fmt_bytecount(pb, stream->bytes_served); switch(stream->stream_type) { case STREAM_TYPE_LIVE: { @@ -2140,10 +2142,12 @@ static void compute_status(HTTPContext *c) } avio_printf(pb, "</table>\n"); - /* date */ - ti = time(NULL); - p = ctime(&ti); - avio_printf(pb, "<hr size=1 noshade>Generated at %s", p); + if (!config.bitexact) { + /* date */ + ti = time(NULL); + p = ctime(&ti); + avio_printf(pb, "<hr size=1 noshade>Generated at %s", p); + } avio_printf(pb, "</body>\n</html>\n"); len = avio_close_dyn_buf(pb, &c->pb_buffer); |