[MPlayer-dev-eng] [PATCH] sub_load and sub_remove slave mode commands
kiriuja
mplayer-patches at en-directo.net
Tue May 3 05:07:43 CEST 2005
This is loosely based on the original Salvatore's patch, but I had to
rewrite practically all of it. Improvements are:
Removed the redundant sub_reload command, sub_load + sub_remove should
be used instead.
Changed sub_remove argument to integer index, removed the corresponding
bloat.
Changed sub_load to use add_subtitles instead of duplicating the code.
Original patch did not update global_sub_pos, global_sub_indices and
several other variables when changing the displayed subtitles, fixed
that by calling sub_select.
Original patch switched to the first subtitle file in sub_remove even
when it did not remove the current file, fixed that.
Fixed all memory leaks.
--
kiriuja
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sub_load_remove.diff
Type: text/x-diff
Size: 5769 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050502/dd1083cc/attachment.diff>
More information about the MPlayer-dev-eng
mailing list