1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00

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.
This commit is contained in:
Uoti Urpala 2011-01-18 16:54:52 +02:00
parent 7bb10e7ce2
commit 6d65f6889a

View File

@ -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