f_decoder_wrapper: fix initialization state

Some state wasn't reset when decoding was started without a seek reset
before it. The code used to rely on reset_decoder() resetting this
state, but since the commit referenced below, reset_decoder() does less
than reset().

Fix this by explicitly calling reset() on initialization.

Fixes: "f_decoder_wrapper: avoid full reset on timeline switch etc."
This commit is contained in:
wm4 2019-06-01 14:12:26 +02:00
parent be0878e121
commit aacc868bdd
1 changed files with 2 additions and 0 deletions

View File

@ -810,6 +810,8 @@ struct mp_decoder_wrapper *mp_decoder_wrapper_create(struct mp_filter *parent,
goto error; goto error;
p->demux = demux->pins[0]; p->demux = demux->pins[0];
reset(f);
return w; return w;
error: error:
talloc_free(f); talloc_free(f);