summaryrefslogtreecommitdiff
path: root/decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.cpp')
-rw-r--r--decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder.cpp b/decoder.cpp
index f01215b..c362745 100644
--- a/decoder.cpp
+++ b/decoder.cpp
@@ -10,7 +10,7 @@ DecoderFilter::DecoderFilter(DecoderBase::p decoder_) {
decoder = decoder_;
}
-typedef boost::function<boost::shared_ptr<DecoderBase>()> DecoderFactory;
+typedef boost::function<DecoderBase::p ()> DecoderFactory;
std::map<std::string, DecoderFactory> decoder_factories;
void decoder::init() {
@@ -20,5 +20,5 @@ void decoder::init() {
//! Construct a filter with the given decoder.
DecoderFilter::p decoder::get_decoder(const std::string& name) {
- return DecoderFilter::p(new DecoderFilter(DecoderBase::p(decoder_factories[name]())));
+ return DecoderFilter::p(new DecoderFilter(decoder_factories[name]()));
}