From: Martin Ling Date: Sun, 30 Dec 2018 02:08:28 +0000 (+0100) Subject: Move device open and config_set calls to client. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=36bc60b717a56ca1c60dbfb718621219cb45bd54;p=libsigrokflow.git Move device open and config_set calls to client. --- diff --git a/src/main.cpp b/src/main.cpp index 2d6e037..1601d86 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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::create(10)); _task = Gst::Task::create(std::bind(&LegacyCaptureDevice::_run, this)); _task->set_lock(_mutex); _src_pad->set_active(true);