From aacc868bddbf3be937f62bd141d9d6c400fdf916 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Jun 2019 14:12:26 +0200 Subject: [PATCH] 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." --- filters/f_decoder_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filters/f_decoder_wrapper.c b/filters/f_decoder_wrapper.c index f7a1def177..4c10bd40b3 100644 --- a/filters/f_decoder_wrapper.c +++ b/filters/f_decoder_wrapper.c @@ -810,6 +810,8 @@ struct mp_decoder_wrapper *mp_decoder_wrapper_create(struct mp_filter *parent, goto error; p->demux = demux->pins[0]; + reset(f); + return w; error: talloc_free(f);