From 7044965988cb6aa63f2e493c80050ae39aab5bf8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 2 Dec 2009 12:50:56 +0200 Subject: vf_vo: Use vo_seek_reset() instead of vo_control() Change the vo_control(vo, VOCTRL_RESET, NULL) call done when the vf_vo filter is uninited to vo_seek_reset(vo). The latter also sets vo->frame_loaded to false. Remove the vo->config_ok check from vo_seek_reset(). The reset call should be doable even if config failed. --- libmpcodecs/vf_vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index 7026ac93fc..b15e488961 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -203,7 +203,7 @@ static void uninit(struct vf_instance* vf) if (vf->priv) { /* Allow VO (which may live on to work with another instance of vf_vo) * to get rid of numbered-mpi references that will now be invalid. */ - vo_control(video_out, VOCTRL_RESET, NULL); + vo_seek_reset(video_out); #ifdef CONFIG_ASS if (vf->priv->ass_priv) ass_renderer_done(vf->priv->ass_priv); -- cgit v1.2.3