summaryrefslogtreecommitdiff
path: root/encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'encoder.cpp')
-rw-r--r--encoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/encoder.cpp b/encoder.cpp
index cd37daa..0f2a5fe 100644
--- a/encoder.cpp
+++ b/encoder.cpp
@@ -10,7 +10,7 @@ EncoderFilter::EncoderFilter(EncoderBase::p encoder_) {
encoder = encoder_;
}
-typedef boost::function<boost::shared_ptr<EncoderBase>()> EncoderFactory;
+typedef boost::function<EncoderBase::p ()> EncoderFactory;
std::map<std::string, EncoderFactory> encoder_factories;
void encoder::init() {
@@ -19,5 +19,5 @@ void encoder::init() {
//! Construct a filter with the given encoder.
EncoderFilter::p encoder::get_encoder(const std::string& name) {
- return EncoderFilter::p(new EncoderFilter(EncoderBase::p(encoder_factories[name]())));
+ return EncoderFilter::p(new EncoderFilter(encoder_factories[name]()));
}