summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-18 16:54:52 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-18 16:54:52 +0200
commit6d65f6889af5c4ad8874f59d97e73053fa31aba5 (patch)
treee7d1b2887934543a21ef07fe8f4a77d10763be09
parent7bb10e7ce2683da43345a60584c63479751366ff (diff)
downloadmpv-6d65f6889af5c4ad8874f59d97e73053fa31aba5.tar.bz2
mpv-6d65f6889af5c4ad8874f59d97e73053fa31aba5.tar.xz
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.
-rw-r--r--libmpcodecs/vf_vo.c1
1 files changed, 0 insertions, 1 deletions
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