+ &answer_to_connection_thunk, this,
+ MHD_OPTION_NOTIFY_COMPLETED, &request_completed_thunk, this,
+ MHD_OPTION_END);
+}
+
+void HTTPD::add_packet(const AVPacket &pkt, int64_t pts, int64_t dts, PacketDestination destination)
+{
+ unique_lock<mutex> lock(streams_mutex);
+ if (destination != DESTINATION_FILE_ONLY) {
+ for (Stream *stream : streams) {
+ stream->add_packet(pkt, pts, dts);
+ }
+ }
+ if (file_mux && destination != DESTINATION_HTTP_ONLY) {
+ file_mux->add_packet(pkt, pts, dts);
+ }