# HG changeset patch # User reimar # Date 1185383582 0 # Node ID 8287ef1758cbde112a09301f31726f15ddcb1469 # Parent 7065615ef25ceb732b4e25ffc0123d75fe4c8de8 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. diff -r 7065615ef25c -r 8287ef1758cb command.c --- a/command.c Wed Jul 25 17:11:22 2007 +0000 +++ b/command.c Wed Jul 25 17:13:02 2007 +0000 @@ -2375,6 +2375,7 @@ 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 @@ 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;