mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
af_lavrresample: don't flush in uninitialized state
libswresample verbosely complains.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user