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

reimar subversion at mplayerhq.hu
Wed Jul 25 19:13:02 CEST 2007


Author: reimar
Date: Wed Jul 25 19:13:02 2007
New Revision: 23858

Log:
subdata must be set to NULL when the corresponding data was freed.
"mp_input_queue_cmd(mp_input_parse_cmd("sub_select"));" will do this
somewhen as well, but that might already be too late.


Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Wed Jul 25 19:13:02 2007
@@ -2375,6 +2375,7 @@ int run_command(MPContext * mpctx, mp_cm
 		    mpctx->set_of_sub_size = 0;
 		    if (mpctx->set_of_sub_pos >= 0) {
 			mpctx->global_sub_pos = -2;
+			subdata = NULL;
 			mp_input_queue_cmd(mp_input_parse_cmd("sub_select"));
 		    }
 		} else if (v < mpctx->set_of_sub_size) {
@@ -2385,6 +2386,7 @@ int run_command(MPContext * mpctx, mp_cm
 		    sub_free(subd);
 		    if (mpctx->set_of_sub_pos == v) {
 			mpctx->global_sub_pos = -2;
+			subdata = NULL;
 			mp_input_queue_cmd(mp_input_parse_cmd("sub_select"));
 		    } else if (mpctx->set_of_sub_pos > v) {
 			--mpctx->set_of_sub_pos;



More information about the MPlayer-cvslog mailing list