From 6d65f6889af5c4ad8874f59d97e73053fa31aba5 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 18 Jan 2011 16:54:52 +0200 Subject: vf_vo: fix EOSD change detection bug vf_vo had code setting its prev_visibility variable correctly, then a line that overrode the value just set with an incorrect one. Remove the wrong extra line. As a result of the bug the "contents changed" indicator wasn't forced to true when switching from a subtitle track to "no track" and then back. A visible effect was at least that a currently visible static subtitle disappeared when doing that switch back and forth. --- libmpcodecs/vf_vo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index 81dff4cea9..92513f5028 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -161,7 +161,6 @@ static int control(struct vf_instance *vf, int request, void* data) vf->priv->prev_visibility = 1; } else vf->priv->prev_visibility = 0; - vf->priv->prev_visibility = sub_visibility; return vo_control(video_out, VOCTRL_DRAW_EOSD, &images) == VO_TRUE; } #endif -- cgit v1.2.3