changeset 29853:415169f556ed

Avoid modifying dvdsub_id in command.c where possible.
author reimar
date Wed, 11 Nov 2009 11:09:36 +0000
parents 32d288088a0f
children 00ebdb6cb87f
files command.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/command.c	Wed Nov 11 09:28:21 2009 +0000
+++ b/command.c	Wed Nov 11 11:09:36 2009 +0000
@@ -1498,8 +1498,8 @@
 	&& (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)