# HG changeset patch # User reimar # Date 1257937776 0 # Node ID 415169f556eddab57e7e33024088ca8adc657575 # Parent 32d288088a0fc42fd809667f923e61cb2cb0927e Avoid modifying dvdsub_id in command.c where possible. diff -r 32d288088a0f -r 415169f556ed command.c --- 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)