X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=kaeru.cpp;h=e763c3429383064c529d8d1e45c5f8450b75ec51;hb=4a0187ffb4075b4d217b8d9e9c96cac548b199d8;hp=425870ed3bd839cebdcf378378bcfa69adf18521;hpb=1865abf9f8180e466513913c9433eb0e206c77f3;p=nageru diff --git a/kaeru.cpp b/kaeru.cpp index 425870e..e763c34 100644 --- a/kaeru.cpp +++ b/kaeru.cpp @@ -50,7 +50,7 @@ int write_packet(void *opaque, uint8_t *buf, int buf_size, AVIODataMarkerType ty stream_mux_header.append((char *)buf, buf_size); httpd->set_header(stream_mux_header); } else { - httpd->add_data((char *)buf, buf_size, type == AVIO_DATA_MARKER_SYNC_POINT); + httpd->add_data((char *)buf, buf_size, type == AVIO_DATA_MARKER_SYNC_POINT, time, AVRational{ AV_TIME_BASE, 1 }); } return buf_size; } @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) BasicStats basic_stats(/*verbose=*/false); global_basic_stats = &basic_stats; - httpd.start(9095); + httpd.start(global_flags.http_port); signal(SIGUSR1, adjust_bitrate); signal(SIGUSR2, adjust_bitrate);