From: Uwe Hermann Date: Thu, 19 Apr 2018 19:44:43 +0000 (+0200) Subject: session: Don't run nop transform unless explicitly requested. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6af207e60b07dbbafc9675a30b0e44deb393a26b;p=sigrok-cli.git session: Don't run nop transform unless explicitly requested. --- diff --git a/session.c b/session.c index 5d92362..e692970 100644 --- 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);