[MPlayer-cvslog] r23569 - trunk/command.c

reimar subversion at mplayerhq.hu
Sun Jun 17 10:29:26 CEST 2007


Author: reimar
Date: Sun Jun 17 10:29:26 2007
New Revision: 23569

Log:
Merge (trivial) dvdnav and dvdread subtitle selection code


Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Sun Jun 17 10:29:26 2007
@@ -1243,17 +1243,6 @@ static int mp_property_sub(m_option_t * 
 	dvdsub_id =
 	    mpctx->global_sub_pos - mpctx->global_sub_indices[SUB_SOURCE_DEMUX];
 	if (d_sub) {
-#ifdef USE_DVDREAD
-	    if (vo_spudec && mpctx->stream->type == STREAMTYPE_DVD) {
-		d_sub->id = dvdsub_id;
-	    }
-#endif
-
-#ifdef USE_DVDNAV
-	    if (vo_spudec && mpctx->stream->type == STREAMTYPE_DVDNAV) {
-		d_sub->id = dvdsub_id;
-	    }
-#endif
 	    if (mpctx->stream->type != STREAMTYPE_DVD
 		&& mpctx->stream->type != STREAMTYPE_DVDNAV) {
 		int i = 0;
@@ -1268,6 +1257,8 @@ static int mp_property_sub(m_option_t * 
 		    }
 		}
 	    }
+	    else if (vo_spudec)
+		d_sub->id = dvdsub_id;
 	    if (mpctx->demuxer->type == DEMUXER_TYPE_MATROSKA)
 		d_sub->id = demux_mkv_change_subs(mpctx->demuxer, dvdsub_id);
 	    if (d_sub->sh && d_sub->id >= 0) {



More information about the MPlayer-cvslog mailing list