output/wav: Minor code cleanup.

This commit is contained in:
Bert Vermeulen 2014-08-13 14:30:30 +02:00
parent 63f6df68c6
commit 441e9eae58
1 changed files with 3 additions and 4 deletions

View File

@ -229,6 +229,7 @@ static int check_chanbuf_size(const struct sr_output *o)
return size;
}
static int receive(const struct sr_output *o, const struct sr_datafeed_packet *packet,
GString **out)
{
@ -340,10 +341,8 @@ static struct sr_option options[] = {
static struct sr_option *get_options(void)
{
if (!options[0].def) {
options[0].def = g_variant_new_double(0.0);
g_variant_ref_sink(options[0].def);
}
if (!options[0].def)
options[0].def = g_variant_ref_sink(g_variant_new_double(0.0));
return options;
}