]> sigrok.org Git - libsigrok.git/commitdiff
sr_session_send: pass transformed packet to datafeed callbacks
authorDaniel Glöckner <redacted>
Sat, 22 Aug 2015 15:39:39 +0000 (17:39 +0200)
committerUwe Hermann <redacted>
Sun, 30 Aug 2015 16:54:13 +0000 (18:54 +0200)
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.

src/session.c

index 158b33cf856a21e8f547982a4742d9cab918b4e2..20c9ce5fcea48aaa9bc75bb7cecf050276dbc829 100644 (file)
@@ -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