SignalData: Moved samplerate into Snapshot
[pulseview.git] / pv / storesession.cpp
index 2e90871cbcd3a6bda936e6efb863df1a21135c20..af599db00e769c6d17687116281b400b56420f05 100644 (file)
@@ -108,7 +108,7 @@ bool StoreSession::start()
 
        // Get the snapshot
        const deque< shared_ptr<data::LogicSnapshot> > &snapshots =
-               data->get_snapshots();
+               data->logic_snapshots();
 
        if (snapshots.empty()) {
                error_ = tr("No snapshots to save.");
@@ -127,8 +127,8 @@ bool StoreSession::start()
                        {{"filename",
                                Glib::Variant<Glib::ustring>::create(file_name_)}});
                auto meta = context->create_meta_packet(
-                       {{ConfigKey::SAMPLERATE,
-                               Glib::Variant<guint64>::create(data->samplerate())}});
+                       {{ConfigKey::SAMPLERATE, Glib::Variant<guint64>::create(
+                               snapshot->samplerate())}});
                output_->receive(meta);
        } catch (Error error) {
                error_ = tr("Error while saving.");