Input/chronovu_la8: Add reset() function
This commit is contained in:
parent
3781b65d19
commit
ef9d3fefbc
|
@ -154,6 +154,16 @@ static int end(struct sr_input *in)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int reset(struct sr_input *in)
|
||||||
|
{
|
||||||
|
struct context *inc = in->priv;
|
||||||
|
|
||||||
|
inc->started = FALSE;
|
||||||
|
g_string_truncate(in->buf, 0);
|
||||||
|
|
||||||
|
return SR_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static struct sr_option options[] = {
|
static struct sr_option options[] = {
|
||||||
{ "numchannels", "Number of channels", "Number of channels", NULL, NULL },
|
{ "numchannels", "Number of channels", "Number of channels", NULL, NULL },
|
||||||
{ "samplerate", "Sample rate", "Sample rate", NULL, NULL },
|
{ "samplerate", "Sample rate", "Sample rate", NULL, NULL },
|
||||||
|
@ -181,4 +191,5 @@ SR_PRIV struct sr_input_module input_chronovu_la8 = {
|
||||||
.init = init,
|
.init = init,
|
||||||
.receive = receive,
|
.receive = receive,
|
||||||
.end = end,
|
.end = end,
|
||||||
|
.reset = reset,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue