]> sigrok.org Git - libsigrokflow.git/commitdiff
Move device open and config_set calls to client.
authorMartin Ling <redacted>
Sun, 30 Dec 2018 02:08:28 +0000 (03:08 +0100)
committerUwe Hermann <redacted>
Tue, 8 Jan 2019 18:41:58 +0000 (19:41 +0100)
src/main.cpp

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