]> sigrok.org Git - libsigrokflow.git/commitdiff
Set correct variant type.
authorMartin Ling <redacted>
Sun, 30 Dec 2018 01:34:02 +0000 (02:34 +0100)
committerUwe Hermann <redacted>
Tue, 8 Jan 2019 18:41:58 +0000 (19:41 +0100)
src/main.cpp

index 6d1cadca9148bce91f1d399ecd65c48dc9a34566..2d6e037ad0039bc9dee4e85a8d4473139d2b41dd 100644 (file)
@@ -105,7 +105,7 @@ Gst::StateChangeReturn LegacyCaptureDevice::change_state_vfunc(Gst::StateChange
                case Gst::STATE_CHANGE_PAUSED_TO_PLAYING:
                        _libsigrok_device->open();
                        _libsigrok_device->config_set(sigrok::ConfigKey::LIMIT_SAMPLES,
-                                       Glib::Variant<int>::create(10));
+                                       Glib::Variant<uint64_t>::create(10));
                        _task = Gst::Task::create(std::bind(&LegacyCaptureDevice::_run, this));
                        _task->set_lock(_mutex);
                        _src_pad->set_active(true);