summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-25 17:13:02 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-25 17:13:02 +0000
commit641d9d1156c8930fa0f9852827aacc951981637f (patch)
tree0e9a3c72adfecb9497e91f2b93a4e96cba563509 /command.c
parent06292ecdbfe29b42426824620fb34579657e021a (diff)
downloadmpv-641d9d1156c8930fa0f9852827aacc951981637f.tar.bz2
mpv-641d9d1156c8930fa0f9852827aacc951981637f.tar.xz
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
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
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;