diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-25 17:13:02 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-25 17:13:02 +0000 |
commit | 641d9d1156c8930fa0f9852827aacc951981637f (patch) | |
tree | 0e9a3c72adfecb9497e91f2b93a4e96cba563509 | |
parent | 06292ecdbfe29b42426824620fb34579657e021a (diff) |
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
-rw-r--r-- | command.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |