From: Gerhard Sittig Date: Sun, 26 Dec 2021 06:52:59 +0000 (+0100) Subject: session: optionally send EOF to decoder session X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=382d3599a564bed5b5d303adb304d1cd466d2459 session: optionally send EOF to decoder session Communicate EOF to the decoder session (when the library supports it). --- diff --git a/session.c b/session.c index 0e426cd..5f5ca8f 100644 --- a/session.c +++ b/session.c @@ -485,6 +485,10 @@ void datafeed_in(const struct sr_dev_inst *sdi, if (packet->type == SR_DF_END) { g_debug("cli: Received SR_DF_END."); +#if defined HAVE_SRD_SESSION_SEND_EOF && HAVE_SRD_SESSION_SEND_EOF + (void)srd_session_send_eof(srd_sess); +#endif + if (do_props) { props_dump_details(df_arg); props_cleanup(df_arg);