diff options
Diffstat (limited to 'transcode.cpp')
-rw-r--r-- | transcode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transcode.cpp b/transcode.cpp index 5244627..81d5274 100644 --- a/transcode.cpp +++ b/transcode.cpp @@ -3,7 +3,7 @@ #include <boost/iostreams/device/file.hpp> #include <boost/iostreams/filtering_stream.hpp> -Transcoder::Transcoder(std::string p, HTTPResponse& r, DecoderBase& d, EncoderBase& e) : path(p), res(r), decoder(d), encoder(e) { +Transcoder::Transcoder(std::string p, HTTP::Connection::p r, DecoderBase& d, EncoderBase& e) : path(p), res(r), decoder(d), encoder(e) { } void Transcoder::run() { @@ -20,6 +20,6 @@ void Transcoder::run() { s.read(data, 0x1000); size = s.gcount(); if(size > 0) - res.write(data, size); + res->send_data(data, size); } } |