]> sigrok.org Git - libsigrok.git/commit
sr: session: Do not cleanup the driver state in sr_session_stop()
authorLars-Peter Clausen <redacted>
Thu, 5 Jul 2012 19:15:08 +0000 (21:15 +0200)
committerBert Vermeulen <redacted>
Wed, 11 Jul 2012 21:28:35 +0000 (23:28 +0200)
commit9213ad012accac3dbfbc6b72d6e99228e87740a4
treee94e2506cbcc0f281831af3ec5616ecf67efa2d2
parented229aaa8ff66116967f75112be953940d4a3149
sr: session: Do not cleanup the driver state in sr_session_stop()

By cleaning up the driver state all devices will become inaccessible, which
means that is neither possible to query any information from it (like sample
rate) and it is also not possible to restart data acquisition.

sr_session_save() tries to query the sample rate from the device, as a result
calling sr_session_save() after calling sr_session_stop() - which is for example
done by sigrok-cli - will cause a segfault. This patch resolves the issue.

Signed-off-by: Lars-Peter Clausen <redacted>
session.c