summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-11 11:09:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-11 11:09:36 +0000
commit05721f9672916da34d73693490842f5fe078535b (patch)
tree75daa987bd4fbaa52183556e01e8b250bf8bb90d /command.c
parent7694e9074d0242a0abe4d772cc54e334c80d049b (diff)
downloadmpv-05721f9672916da34d73693490842f5fe078535b.tar.bz2
mpv-05721f9672916da34d73693490842f5fe078535b.tar.xz
Avoid modifying dvdsub_id in command.c where possible.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29895 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index bfdfe31bd4..779296dc98 100644
--- a/command.c
+++ b/command.c
@@ -1498,8 +1498,8 @@ static int mp_property_sub(m_option_t * prop, int action, void *arg,
&& (mpctx->stream->type == STREAMTYPE_DVD
|| mpctx->stream->type == STREAMTYPE_DVDNAV)
&& dvdsub_id < 0 && reset_spu) {
- dvdsub_id = -2;
- d_sub->id = dvdsub_id;
+ d_sub->id = -2;
+ d_sub->sh = NULL;
}
#endif
if (mpctx->sh_audio)