[MPlayer-dev-eng] [patch] loading libass subtitles from network

Yuriy Kaminskiy yumkam at mail.ru
Wed Feb 3 23:24:18 CET 2010


Hello!
Currently libass doesn't use mplayer stream infrastructure, and fails to load
subtitles from network.
This patch fixes that.
Drawback: does not display subtitle file name on load where used to:
====== before patch:
[ass] ENCA detected charset: UTF-8
[ass] Added subtitle file: /tmp/kno.ass (2 styles, 347 events)
SUB: Added subtitle file (1): /tmp/kno.ass
====== after patch:
[ass] ENCA detected charset: UTF-8
[ass] Added subtitle file: <memory> (2 styles, 347 events)
SUB: Added subtitle file (1): /tmp/kno.ass
======
Name (re)displayed later anyway (SUB:...), and displayed correctly with
-identify, so I considered that not important to bother (fixing would need
changing (upstream) libass, or dirty hackery in libass msg hook).
If #define'ing ass_read_file feels too hackerish, squash second patch in (while
being out-of-tree, less changed files - better ;-)).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libass-read-stream.patch
Type: text/x-diff
Size: 2442 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100204/f30e6bee/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libass-read-stream-no-redefine.patch
Type: text/x-diff
Size: 1277 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100204/f30e6bee/attachment-0001.patch>


More information about the MPlayer-dev-eng mailing list