[MPlayer-cvslog] r29964 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Tue Nov 24 07:59:21 CET 2009


Author: reimar
Date: Tue Nov 24 07:59:21 2009
New Revision: 29964

Log:
Readjust the global number of subs when switching dvdnav track to take
into account any change in the number of DVD subtitles available.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Mon Nov 23 21:41:06 2009	(r29963)
+++ trunk/mplayer.c	Tue Nov 24 07:59:21 2009	(r29964)
@@ -1924,6 +1924,7 @@ static void mp_dvdnav_reset_stream (MPCo
     }
 
     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) {


More information about the MPlayer-cvslog mailing list