core: ordered chapters: fix bad subtitle parameter
commitd5eaf6a820d73181f07de3387cd1c115a49648f5
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 16 Jan 2011 19:16:47 +0000 (16 21:16 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 18 Jan 2011 12:58:09 +0000 (18 14:58 +0200)
treeecdac5eacb750224b5998e88d98f66bea39d8b3d
parentb86c9e59228c35c955d6758269755720cef78b50
core: ordered chapters: fix bad subtitle parameter

mp_property_do() takes the value to set a property to through a
pointer. The calling code used '&mpctx->global_sub_pos' as the
pointer; however that variable could be changed during the
mp_property_do() call. Use a pointer to a copy of the original value
instead.

I think this only caused problems if you switched subtitle tracks from
a real one to "disabled" and then switched to a timeline part from
another source.
mplayer.c