0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vf: flush before reconfig

This commit is contained in:
wm4 2015-12-19 17:39:58 +01:00
parent cd24fdcd5a
commit 78bfee53dd
2 changed files with 1 additions and 10 deletions

View File

@ -609,7 +609,7 @@ int vf_reconfig(struct vf_chain *c, const struct mp_image_params *params,
const struct mp_image_params *override_params)
{
int r = 0;
vf_chain_forget_frames(c);
vf_seek_reset(c);
for (struct vf_instance *vf = c->first; vf; ) {
struct vf_instance *next = vf->next;
if (vf->autoinserted)

View File

@ -27,14 +27,6 @@ static void flush(struct vf_instance *vf)
vf->priv->num_queued = 0;
}
static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt)
{
flush(vf);
return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
}
static int filter_ext(struct vf_instance *vf, struct mp_image *mpi)
{
struct vf_priv_s *p = vf->priv;
@ -73,7 +65,6 @@ static void uninit(vf_instance_t *vf)
static int vf_open(vf_instance_t *vf)
{
vf->config = config;
vf->filter_ext = filter_ext;
vf->control = control;
vf->uninit = uninit;