X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fsrzip.c;h=84755a3d56c42429c6dc9a97fe081f50e7b3d750;hb=eac0c6132752224f46661ddc5a37a1e0e4694c27;hp=a82113fa5082fec8c40d23ebcfbb86e2512d7600;hpb=bc96d5f08fe59ea7c51799b148946f5003c90927;p=libsigrok.git diff --git a/src/output/srzip.c b/src/output/srzip.c index a82113fa..84755a3d 100644 --- a/src/output/srzip.c +++ b/src/output/srzip.c @@ -102,6 +102,8 @@ static int zip_create(const struct sr_output *o) ch = l->data; if (ch->type != SR_CHANNEL_LOGIC) continue; + if (!ch->enabled) + continue; fprintf(meta, "probe%d = %s\n", ch->index + 1, ch->name); } fclose(meta); @@ -310,9 +312,9 @@ SR_PRIV struct sr_output_module output_srzip = { .id = "srzip", .name = "srzip", .desc = "srzip session file", + .exts = (const char*[]){"sr", NULL}, .options = get_options, .init = init, .receive = receive, .cleanup = cleanup, }; -