[MPlayer-cvslog] r25667 - trunk/command.c

eugeni subversion at mplayerhq.hu
Thu Jan 10 20:59:10 CET 2008


Author: eugeni
Date: Thu Jan 10 20:59:09 2008
New Revision: 25667

Log:
Clear demuxed data when subtitle track is changed.


Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Thu Jan 10 20:59:09 2008
@@ -1469,6 +1469,7 @@ static int mp_property_sub(m_option_t * 
 	    // 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) {



More information about the MPlayer-cvslog mailing list