X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=11b2b70bebc65e7503abc2dca66bf78bac54342a;hb=067bb62415847791709f4c3cad8bb252a63f45f8;hp=c5a0e4a7a36d54957e2c96312a796782e1b7e90a;hpb=e8bb7c69bce723ed2b116598012cf85deb191ba8;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index c5a0e4a..11b2b70 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -44,6 +44,7 @@ using std::list; using std::map; using std::pair; using std::shared_ptr; +using std::make_shared; using std::vector; using namespace pv::data::decode; @@ -53,7 +54,7 @@ namespace data { const double DecoderStack::DecodeMargin = 1.0; const double DecoderStack::DecodeThreshold = 0.2; -const int64_t DecoderStack::DecodeChunkLength = 4096; +const int64_t DecoderStack::DecodeChunkLength = 10 * 1024 * 1024; const unsigned int DecoderStack::DecodeNotifyPeriod = 1024; mutex DecoderStack::global_srd_mutex_; @@ -74,8 +75,7 @@ DecoderStack::DecoderStack(pv::Session &session, connect(&session_, SIGNAL(frame_ended()), this, SLOT(on_frame_ended())); - stack_.push_back(shared_ptr( - new decode::Decoder(dec))); + stack_.push_back(make_shared(dec)); } DecoderStack::~DecoderStack()