]> sigrok.org Git - sigrok-cli.git/commitdiff
session: Don't run nop transform unless explicitly requested.
authorUwe Hermann <redacted>
Thu, 19 Apr 2018 19:44:43 +0000 (21:44 +0200)
committerUwe Hermann <redacted>
Thu, 19 Apr 2018 19:44:43 +0000 (21:44 +0200)
session.c

index 5d92362e714bf87175b616495a3f3a3e5c844e78..e692970d6b2cf70982ce66c4401a704f8b1fa498 100644 (file)
--- a/session.c
+++ b/session.c
@@ -130,9 +130,6 @@ const struct sr_transform *setup_transform_module(const struct sr_dev_inst *sdi)
        GHashTable *fmtargs, *fmtopts;
        char *fmtspec;
 
-       if (!opt_transform_module)
-               opt_transform_module = "nop";
-
        fmtargs = parse_generic_arg(opt_transform_module, TRUE);
        fmtspec = g_hash_table_lookup(fmtargs, "sigrok_key");
        if (!fmtspec)
@@ -684,8 +681,10 @@ void run_session(void)
                }
        }
 
-       if (!(t = setup_transform_module(sdi)))
-               g_critical("Failed to initialize transform module.");
+       if (opt_transform_module) {
+               if (!(t = setup_transform_module(sdi)))
+                       g_critical("Failed to initialize transform module.");
+       }
 
        main_loop = g_main_loop_new(NULL, FALSE);