X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.h;h=e8efc030b4706d92b64e89e7ea748c056d8f7c85;hb=9903ba2fb66d20f39e4b73fd6f948e5dbc528fcb;hp=d546feec22180ab4c9bf7fe10be417d9f7b6dff5;hpb=6ebc7f7bd501d1115bf164ce3e1c22db326798c2;p=nageru diff --git a/httpd.h b/httpd.h index d546fee..e8efc03 100644 --- a/httpd.h +++ b/httpd.h @@ -29,10 +29,14 @@ extern "C" { class HTTPD { public: - HTTPD(const char *output_filename, int width, int height); + HTTPD(int width, int height); void start(int port); void add_packet(const AVPacket &pkt, int64_t pts, int64_t dts); + // You can only have one going at the same time. + void open_output_file(const std::string &filename); + void close_output_file(); + private: static int answer_to_connection_thunk(void *cls, MHD_Connection *connection, const char *url, const char *method,