]> sigrok.org Git - libsigrok.git/blobdiff - input/wav.c
uni-t-dmm: Add Tecpel DMM-8061 support.
[libsigrok.git] / input / wav.c
index c5b573caeb99af93b650356ec3da12a77f92e72c..60dd33786e26305038eef87a74ccb54c8c834958 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2013 Bert Vermeulen <bert@biot.com>
  *
@@ -148,9 +148,11 @@ static int loadfile(struct sr_input *in, const char *filename)
 
        packet.type = SR_DF_META;
        packet.payload = &meta;
-       src = sr_config_make(SR_CONF_SAMPLERATE, (const void *)&ctx->samplerate);
+       src = sr_config_new(SR_CONF_SAMPLERATE,
+                       g_variant_new_uint64(ctx->samplerate));
        meta.config = g_slist_append(NULL, src);
        sr_session_send(in->sdi, &packet);
+       sr_config_free(src);
 
        if ((fd = open(filename, O_RDONLY)) == -1)
                return SR_ERR;