mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 19:05:33 +00:00
Clear demuxed data when subtitle track is changed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25667 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
85413c62e8
commit
8661c5f8c0
@ -1469,6 +1469,7 @@ static int mp_property_sub(m_option_t * prop, int action, void *arg,
|
||||
// default: assume 1:1 mapping of sid and stream id
|
||||
d_sub->id = dvdsub_id;
|
||||
d_sub->sh = mpctx->demuxer->s_streams[d_sub->id];
|
||||
ds_free_packs(d_sub);
|
||||
for (i = 0; i < MAX_S_STREAMS; i++) {
|
||||
sh_sub_t *sh = mpctx->demuxer->s_streams[i];
|
||||
if (sh && sh->sid == dvdsub_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user