summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-10 19:59:09 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-10 19:59:09 +0000
commit8661c5f8c0daf23d575abdc8799be4400f01ba7c (patch)
tree30b2300ae2d10f5025c4309d727c332927962f9a /command.c
parent85413c62e8b2d258efd49c2185e219cd0cbbcb5b (diff)
downloadmpv-8661c5f8c0daf23d575abdc8799be4400f01ba7c.tar.bz2
mpv-8661c5f8c0daf23d575abdc8799be4400f01ba7c.tar.xz
Clear demuxed data when subtitle track is changed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25667 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/command.c b/command.c
index 269eeac087..8f84be2c65 100644
--- a/command.c
+++ b/command.c
@@ -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) {