[MPlayer-dev-eng] [PATCH] subtitle reload, slave mode - 4th try

Sascha Sommer saschasommer at freenet.de
Sat Oct 30 10:37:50 CEST 2004


On Monday 25 October 2004 13:50, Salvatore Falco wrote:
>     This patch adds three new slave commands:
>
> sub_load <subtitles_file>
>     Loads the subtitles from file <subtitles_file>, and adds them to the
>     subtitles list.
>
> sub_reload <add_subtitles_file> [<remove_subtitles_file>]
>     If only <add_subtitles_file> argument is provided, subtitles from this
>     file are reloaded; if <remove_subtitles_file> argument is provided,
>     subtitles from <add_subtitles_file> replace those from
> <remove_subtitles_file>.
>
> sub_remove [<subtitles_file>]
>     If <subtitles_file> argument is present, the command removes the
> subtitles loaded from this file; if no argument is provided, all the
> subtitles are removed.
>
>
>     I have tested the patch, and it works. However I noticed a bug in the
> subs rendering: if the subtitles are removed when a subtitle is displaying,
> the subtitle keeps on being displaying for ever - even if the command
> issues a vo_osd_changed(OSDTYPE_SUBTITLE).
>
>     I tried looking for this bug, but, currently, I can't find it.
>

Maybe you need to alter vo_osd_changed_flag?
Or maybe you can find a pointer in vo_remove_text?

Sascha




More information about the MPlayer-dev-eng mailing list