From 641d9d1156c8930fa0f9852827aacc951981637f Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 25 Jul 2007 17:13:02 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23858 b3059339-0415-0410-9bf9-f77b7e298cf2 --- command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index cb398728d0..6a6c8762c6 100644 --- a/command.c +++ b/command.c @@ -2375,6 +2375,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd) 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_cmd_t * cmd) 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; -- cgit v1.2.3