Mercurial > mplayer.hg
diff command.c @ 23838:8287ef1758cb
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.
| author | reimar |
|---|---|
| date | Wed, 25 Jul 2007 17:13:02 +0000 |
| parents | 7065615ef25c |
| children | b5cc28c45d73 |
line wrap: on
line diff
--- 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;
