]> sigrok.org Git - libsigrok.git/blobdiff - src/input/wav.c
rigol-ds: fix the smallest supported vdiv for the DS2000 series.
[libsigrok.git] / src / input / wav.c
index 1c0d4fd18082da643d6b2b0d083e277f1d7ff597..da5a3d5fbe291aff3eee0d4fe4e01eb3841967bb 100644 (file)
@@ -150,7 +150,7 @@ static int init(struct sr_input *in, GHashTable *options)
 {
        (void)options;
 
-       in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
+       in->sdi = g_malloc0(sizeof(struct sr_dev_inst));
        in->priv = g_malloc0(sizeof(struct context));
 
        return SR_OK;
@@ -365,6 +365,7 @@ SR_PRIV struct sr_input_module input_wav = {
        .id = "wav",
        .name = "WAV",
        .desc = "WAV file",
+       .exts = (const char*[]){"wav", NULL},
        .metadata = { SR_INPUT_META_HEADER | SR_INPUT_META_REQUIRED },
        .format_match = format_match,
        .init = init,