diff options
Diffstat (limited to 'transcode.cpp')
-rw-r--r-- | transcode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/transcode.cpp b/transcode.cpp index f3698a3..394f604 100644 --- a/transcode.cpp +++ b/transcode.cpp @@ -3,15 +3,15 @@ #include <boost/iostreams/device/file.hpp> #include <boost/iostreams/filtering_stream.hpp> -Transcoder::Transcoder(std::string p, HTTP::Connection::p r, DecoderBase& d, EncoderBase& e) : path(p), res(r), decoder(d), encoder(e) { +Transcoder::Transcoder(std::string p, HTTP::Connection::p r, DecoderFilter::p d, EncoderFilter::p e) : path(p), res(r), decoder(d), encoder(e) { } void Transcoder::run() { const std::streamsize buffer_size = 0x1000; boost::iostreams::file_source is(path, std::ios::in | std::ios::binary); boost::iostreams::filtering_istream s; - s.push(EncoderFilter(encoder), buffer_size); - s.push(DecoderFilter(decoder), buffer_size); + s.push(*encoder.get(), buffer_size); + s.push(*decoder.get(), buffer_size); s.push(is, buffer_size); res->send_data(s); |