subtitles: Fix double text with libass rendered plaintext subs
commit8ee23f418f1e8ea0310f01d4b48c73a693056d87
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 18 Dec 2009 17:18:19 +0000 (18 19:18 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 18 Dec 2009 17:53:34 +0000 (18 19:53 +0200)
tree94055a853f11629a6f0ab061b8c5eb9c73986ba7
parentefcc9ad7120e01a17fc3659cb0229135b1cebb95
subtitles: Fix double text with libass rendered plaintext subs

When using libass to render plaintext (non-SSA/ASS) subtitles the code
in update_subtitles() still called set_osd_subtitle() in one case,
causing the global vo_sub variable containing non-libass subtitles to
be set. Under some circumstances this resulted in both a
libass-rendered and non-libass-rendered version of the same subtitle
appearing on screen. Fix by running the subtitle clearing code (which
called set_osd_subtitle) only when libass is not used.
mpcommon.c