X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fstoresession.cpp;h=f8ab2e69bc78c1a2ed985e86d176c662b56084d3;hp=2a4c8500a37b532a3341ed6db473bf33528d6043;hb=bf0edd2b0cbb5f4bd5d69b0f00bcea7d037e2287;hpb=40ec0302a21055e85572ced539c457f0d8484c82 diff --git a/pv/storesession.cpp b/pv/storesession.cpp index 2a4c8500..f8ab2e69 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -109,7 +110,7 @@ bool StoreSession::start() shared_ptr any_segment; shared_ptr lsegment; - vector< shared_ptr > achannel_list; + vector< shared_ptr > achannel_list; vector< shared_ptr > asegment_list; for (shared_ptr signal : sigs) { @@ -214,7 +215,7 @@ void StoreSession::cancel() interrupt_ = true; } -void StoreSession::store_proc(vector< shared_ptr > achannel_list, +void StoreSession::store_proc(vector< shared_ptr > achannel_list, vector< shared_ptr > asegment_list, shared_ptr lsegment) { @@ -259,7 +260,7 @@ void StoreSession::store_proc(vector< shared_ptr > achannel_lis const auto context = session_.device_manager().context(); for (unsigned int i = 0; i < achannel_list.size(); i++) { - shared_ptr achannel = achannel_list.at(i); + shared_ptr achannel = (achannel_list.at(i))->channel(); shared_ptr asegment = asegment_list.at(i); const float *adata =