X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=input%2Fwav.c;h=60dd33786e26305038eef87a74ccb54c8c834958;hb=b6bad47c91a7cbc19571cbe49918a0612ad2babe;hp=c5b573caeb99af93b650356ec3da12a77f92e72c;hpb=1d36b4d27f737dfcd6e232bc9d9538bd64bf1afb;p=libsigrok.git diff --git a/input/wav.c b/input/wav.c index c5b573ca..60dd3378 100644 --- a/input/wav.c +++ b/input/wav.c @@ -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 * @@ -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;