libsigrok/src
Soeren Apel 16a1d50a63 Virtual session: Workaround for SR_CONF_CAPTUREFILE (#944)
This is a (hopefully temporary) workaround for the
SR_CONF_CAPTUREFILE mechanism. The value for
vdev->capturefile is set by this, however only once
via stream_session_data().
During stream processing in stream_session_data(),
capturefile may receive new values - e.g. when there
are multiple logic files or if there is analog data.
With that, the initially set capturefile is overwritten.

When re-loading the file, we are then running into
issues because we don't know what the initial value was.
As all .sr files use "logic-1" by default and, we
simulate the behavior of stream_session_data() and
assign this name to capturefile if there are logic
channels present.

With this change, all three kinds of files reload
as expected: logic only, analog only and mixed signal.
For this reason, it's a short-term fix for #944.
2017-05-21 17:10:38 +02:00
..
dmm license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
hardware hantek-6xxx: Only list DC coupling once. 2017-05-17 01:46:50 +02:00
input sr_dev_inst_free(): Allow NULL as argument. 2017-03-10 11:38:12 +01:00
lcr sr_serial_dev_inst_free(): Allow NULL as argument. 2017-03-10 11:41:34 +01:00
modbus Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
output output/csv: get proper index for input channels 2017-05-13 22:34:17 +02:00
scale license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
scpi SCPI: add sr_scpi_write_data() 2017-03-11 13:47:39 +01:00
transform license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
analog.c analog: use SI prefix only with units that accept SI prefixes 2016-10-17 02:24:53 +02:00
backend.c group all drivers into a single object 2016-06-18 15:40:32 +02:00
device.c sr_usbtmc_dev_inst_free(): Allow NULL as argument. 2017-03-10 11:41:34 +01:00
drivers.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
error.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
ezusb.c drivers: Load firmware via new resource API 2015-10-01 15:44:55 +02:00
fallback.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
hwdriver.c Add SR_CONF_SIGNAL_GENERATOR. 2017-03-02 15:17:53 +01:00
libsigrok-internal.h dmm: introduce support for ASYC-II 16-byte protocol in PRINT mode 2016-12-20 17:51:36 +01:00
log.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
resource.c resource: Improve logging output. 2016-09-24 11:41:47 +02:00
scpi.h SCPI: add sr_scpi_write_data() 2017-03-11 13:47:39 +01:00
serial.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
session.c session.c: Drop unneeded check. 2016-07-03 16:41:16 +02:00
session_driver.c Virtual session: Workaround for SR_CONF_CAPTUREFILE (#944) 2017-05-21 17:10:38 +02:00
session_file.c Enable loading of session files without total probes defined 2016-03-28 01:06:29 +02:00
soft-trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
std.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
strutil.c Fix sr_period_string() Doxygen comments. 2017-03-08 01:10:39 +01:00
sw_limits.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
trigger.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
usb.c src/usb.c: Only allow hex characters in CONN_USB_VIDPID. 2015-12-29 13:21:01 +01:00
version.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00