sr: fix initialization for output from driverless devices

This commit is contained in:
Bert Vermeulen 2012-07-29 03:01:02 +02:00
parent 6f57fd9694
commit aee878fa2e
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode)
ctx->mark_trigger = -1;
ctx->mode = mode;
ret = SR_OK;
if (o->param && o->param[0]) {
ctx->samples_per_line = strtoul(o->param, NULL, 10);
if (ctx->samples_per_line < 1) {