X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsession.cpp;h=73dd339b60fea95259d6fddc7aace7ec9f3ad0e1;hp=ba43ac21fb9c64d0d1b2711949fb417e4493c890;hb=2b05d3110a0a50ce93c8c887a2dc00c1375e92fa;hpb=34c11fa778e0383d1f117a98be5e32479372022a diff --git a/pv/session.cpp b/pv/session.cpp index ba43ac2..73dd339 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -223,8 +223,7 @@ void Session::start_capture(function error_handler) // Begin the session sampling_thread_ = std::thread( - &Session::sample_thread_proc, this, device_, - error_handler); + &Session::sample_thread_proc, this, error_handler); } void Session::stop_capture() @@ -458,10 +457,8 @@ shared_ptr Session::signal_from_channel( return shared_ptr(); } -void Session::sample_thread_proc(shared_ptr device, - function error_handler) +void Session::sample_thread_proc(function error_handler) { - assert(device); assert(error_handler); if (!device_)