Mercurial > mplayer.hg
changeset 29922:3991a8fd6a02
Readjust the global number of subs when switching dvdnav track to take
into account any change in the number of DVD subtitles available.
author | reimar |
---|---|
date | Tue, 24 Nov 2009 06:59:21 +0000 |
parents | 797bc16b89dc |
children | 88272f3b9b19 |
files | mplayer.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Mon Nov 23 20:41:06 2009 +0000 +++ b/mplayer.c Tue Nov 24 06:59:21 2009 +0000 @@ -1924,6 +1924,7 @@ } audio_delay = 0.0f; + mpctx->global_sub_size = mpctx->global_sub_indices[SUB_SOURCE_DEMUX] + mp_dvdnav_number_of_subs(mpctx->stream); if (dvdsub_lang && dvdsub_id == dvdsub_lang_id) { dvdsub_lang_id = mp_dvdnav_sid_from_lang(ctx->stream, dvdsub_lang); if (dvdsub_lang_id != dvdsub_id) {