]> sigrok.org Git - sigrok-test.git/commit
runtc: cope with "late" samplerate announcement
authorGerhard Sittig <redacted>
Sat, 23 Apr 2022 13:29:09 +0000 (15:29 +0200)
committerGerhard Sittig <redacted>
Sat, 23 Apr 2022 14:29:58 +0000 (16:29 +0200)
commit450d475b2bfc3e73d56580e0061a508fa67972b0
tree4076122a3ddde49c94f7460c097258f28b4b30b5
parent15cc940fb8d79ffee3f41d269998901861a542c7
runtc: cope with "late" samplerate announcement

The previous implementation expected a rather specific sequence of
SR_DF_HEADER with samplerate, then SR_DF_LOGIC. This worked with .sr
formatted session files. But does not work with other input formats.

Also process SR_DF_META packets. Pass any samplerate that we learn about
to decoders' .metadata() method. Defer decoders' .start() until the first
logic samples are seen. This improves robustness of the decoder tests.
decoder/runtc.c