projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new dependency: libgstreamermm >= 1.8.0.
[pulseview.git]
/
pv
/
session.cpp
diff --git
a/pv/session.cpp
b/pv/session.cpp
index c0bcd670de26d0af866bf9cb87705ad506d5a57e..7db96ff0abf568d0199d948afc7853bbbf499b9c 100644
(file)
--- a/
pv/session.cpp
+++ b/
pv/session.cpp
@@
-982,6
+982,10
@@
void Session::sample_thread_proc(function<void (const QString)> error_handler)
error_handler(e.what());
set_capture_state(Stopped);
return;
error_handler(e.what());
set_capture_state(Stopped);
return;
+ } catch (QString& e) {
+ error_handler(e);
+ set_capture_state(Stopped);
+ return;
}
set_capture_state(Stopped);
}
set_capture_state(Stopped);
@@
-1163,6
+1167,9
@@
void Session::feed_in_logic(shared_ptr<Logic> logic)
return;
}
return;
}
+ if (logic->unit_size() > 8)
+ throw QString(tr("Can't handle more than 64 logic channels."));
+
if (!cur_samplerate_)
try {
cur_samplerate_ = device_->read_config<uint64_t>(ConfigKey::SAMPLERATE);
if (!cur_samplerate_)
try {
cur_samplerate_ = device_->read_config<uint64_t>(ConfigKey::SAMPLERATE);