From: Daniel Glöckner Date: Sat, 22 Aug 2015 15:39:39 +0000 (+0200) Subject: sr_session_send: pass transformed packet to datafeed callbacks X-Git-Tag: libsigrok-0.4.0~368 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4ec436c4d5b1712c9b5162171586e9bbedf41f09;p=libsigrok.git sr_session_send: pass transformed packet to datafeed callbacks After the packet has been passed through the transformation modules, the transformed data is in packet_in but the following code uses the packet variable which still points to the original input. This fixes bug #631. --- diff --git a/src/session.c b/src/session.c index 158b33cf..20c9ce5f 100644 --- a/src/session.c +++ b/src/session.c @@ -770,6 +770,7 @@ SR_PRIV int sr_session_send(const struct sr_dev_inst *sdi, packet_in = packet_out; } } + packet = packet_in; /* * If the last transform did output a packet, pass it to all datafeed