af_lavrresample: don't flush in uninitialized state

libswresample verbosely complains.
This commit is contained in:
wm4
2015-06-22 14:59:51 +02:00
parent 872b19dfcb
commit 17e8815e37

View File

@@ -391,7 +391,8 @@ static int control(struct af_instance *af, int cmd, void *arg)
return AF_OK;
}
case AF_CONTROL_RESET:
drop_all_output(s);
if (s->avrctx_ok)
drop_all_output(s);
return AF_OK;
}
return AF_UNKNOWN;