]> sigrok.org Git - sigrok-cli.git/blobdiff - sigrok-cli.c
use input API properly
[sigrok-cli.git] / sigrok-cli.c
index 6512ff7f77158f3dc7072b1010a014748ab34769..eba6966ee877134e88f2fb30c3164a463d20efcb 100644 (file)
@@ -1189,7 +1189,7 @@ static void load_input_file_format(void)
        in->format = input_format;
        in->param = fmtargs;
        if (in->format->init) {
-               if (in->format->init(in) != SR_OK) {
+               if (in->format->init(in, opt_input_file) != SR_OK) {
                        g_critical("Input format init failed.");
                        exit(1);
                }