From: Soeren Apel Date: Sat, 8 Apr 2023 21:17:09 +0000 (+0200) Subject: StoreSession: Also send SR_DF_HEADER packet X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b30e50f9836dc6a8484eabf6716acd0a71747583;p=pulseview.git StoreSession: Also send SR_DF_HEADER packet Some output modules rely on it, e.g. CSV --- diff --git a/pv/storesession.cpp b/pv/storesession.cpp index 182642ee..6d1a4ab9 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -184,6 +184,12 @@ bool StoreSession::start() {{ConfigKey::SAMPLERATE, Glib::Variant::create( any_segment->samplerate())}}); output_->receive(meta); + + Glib::TimeVal start_time; + start_time.tv_sec = 0; // TODO Assumes saved data begins at t=0 + start_time.tv_usec = 0; + auto header = context->create_header_packet(start_time); + output_->receive(header); } catch (Error& error) { error_ = tr("Error while saving: ") + error.what(); return false;