inc->skip = g_variant_get_int32(g_hash_table_lookup(options, "skip"));
inc->skip /= inc->downsample;
- in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
+ in->sdi = sr_dev_inst_new();
in->priv = inc;
for (i = 0; i < num_channels; i++) {
return ret;
}
-static int cleanup(struct sr_input *in)
+static void cleanup(struct sr_input *in)
{
struct context *inc;
inc = in->priv;
g_slist_free_full(inc->channels, free_channel);
-
- return SR_OK;
}
static struct sr_option options[] = {