X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsigsession.cpp;h=6f66be7c586be3958b6b08290829264e401997c3;hp=8d22296c40e89e57da2ad24ec12aec88112c7be9;hb=f9101a91fc942a28515872ae6c7285973bd54b91;hpb=bb2cdfffd5817feb7a6dcde19b6110a6c253a261 diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 8d22296c..6f66be7c 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -161,8 +161,7 @@ SigSession::capture_state SigSession::get_capture_state() const return _capture_state; } -void SigSession::start_capture(uint64_t record_length, - function error_handler) +void SigSession::start_capture(function error_handler) { stop_capture(); @@ -188,8 +187,7 @@ void SigSession::start_capture(uint64_t record_length, // Begin the session _sampling_thread = boost::thread( - &SigSession::sample_thread_proc, this, _sdi, - record_length, error_handler); + &SigSession::sample_thread_proc, this, _sdi, error_handler); } void SigSession::stop_capture() @@ -557,7 +555,6 @@ void SigSession::load_input_thread_proc(const string name, } void SigSession::sample_thread_proc(struct sr_dev_inst *sdi, - uint64_t record_length, function error_handler) { assert(sdi); @@ -572,15 +569,6 @@ void SigSession::sample_thread_proc(struct sr_dev_inst *sdi, return; } - // Set the sample limit - if (sr_config_set(sdi, NULL, SR_CONF_LIMIT_SAMPLES, - g_variant_new_uint64(record_length)) != SR_OK) { - error_handler(tr("Failed to configure " - "time-based sample limit.")); - sr_session_destroy(); - return; - } - if (sr_session_start() != SR_OK) { error_handler(tr("Failed to start session.")); return;