[MPlayer-dev-eng] [PATCH-ISH] fix thread-safety in libass

elupus elupus at ecce.se
Sat Jan 31 18:10:08 CET 2009


Hi, 

While using libass in xbmc, i noticed that it's not very threadsafe or even
multiuse safe as it uses alot of global state. So i started to clean it up
for our use.

I though i'd make the patch series available here. These patches are a
patch series applied to our branched libass, thus they will probably not
apply entirely cleanly to the version in mplayerhq. 

I made sure to update our libass to current mplayerhq version, so the
differences should be minimal.

I've got little interest in cleaning them up for acceptance into mplayer
svn (but I think it wouldn't be that much work), so this is mearly a help
for anybody that wishes todo so (Evgeniy probably).

Regards
Joakim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-cosmetic-move-ass_render_s-to-after-global-structs.patch
Type: text/x-patch
Size: 1902 bytes
Desc: Attached file: 0002-cosmetic-move-ass_render_s-to-after-global-structs.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-changed-eliminate-global_settings-variable-and-dire.patch
Type: text/x-patch
Size: 26421 bytes
Desc: Attached file: 0003-changed-eliminate-global_settings-variable-and-dire.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-changed-move-libass-global-struct-text_info-into-re.patch
Type: text/x-patch
Size: 19665 bytes
Desc: Attached file: 0004-changed-move-libass-global-struct-text_info-into-re.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-changed-move-libass-global-struct-render_context-in.patch
Type: text/x-patch
Size: 46305 bytes
Desc: Attached file: 0005-changed-move-libass-global-struct-render_context-in.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-changed-move-libass-global-struct-frame_context-int.patch
Type: text/x-patch
Size: 20003 bytes
Desc: Attached file: 0006-changed-move-libass-global-struct-frame_context-int.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-changed-move-libass-font-cache-into-library-context.patch
Type: text/x-patch
Size: 5535 bytes
Desc: Attached file: 0007-changed-move-libass-font-cache-into-library-context.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-changed-move-libass-bitmap-cache-into-renderer-cont.patch
Type: text/x-patch
Size: 5191 bytes
Desc: Attached file: 0008-changed-move-libass-bitmap-cache-into-renderer-cont.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-changed-move-libass-glyph-cache-into-renderer-conte.patch
Type: text/x-patch
Size: 5369 bytes
Desc: Attached file: 0009-changed-move-libass-glyph-cache-into-renderer-conte.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090131/a5fe1a9d/attachment-0007.bin>


More information about the MPlayer-dev-eng mailing list