summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-20 00:39:54 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-20 00:39:54 +0000
commit6743a5984e533e04b10b7b6a32bd5a101cf770ae (patch)
tree66559e1d1374cce9f2e61fe08f12dce65d390530 /mplayer.c
parent88f4f3c3d32bebf90dfd27d68cf95756a00b3230 (diff)
downloadmpv-6743a5984e533e04b10b7b6a32bd5a101cf770ae.tar.bz2
mpv-6743a5984e533e04b10b7b6a32bd5a101cf770ae.tar.xz
-alang/-slang fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4275 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/mplayer.c b/mplayer.c
index 51ba40a89e..afd7f74fd2 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -886,6 +886,13 @@ if(stream_dump_type==5){
exit_player(MSGTR_Exit_eof);
}
+#ifdef USE_DVDREAD
+current_module="dvd lang->id";
+if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
+if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
+current_module=NULL;
+#endif
+
// initial prefill: 20% later: 5% (should be set by -cacheopts)
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024/5,stream_cache_size*1024/20);
@@ -1013,18 +1020,14 @@ if(!sh_video){
}
#ifdef USE_DVDREAD
-current_module="dvd lang->id";
-if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
-if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
-
current_module="spudec";
vo_spudec=spudec_new_scaled(stream->priv?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL,
sh_video->disp_w, sh_video->disp_h);
if (vo_spudec!=NULL)
inited_flags|=INITED_SPUDEC;
-#endif
current_module=NULL;
-
+#endif
+
#ifdef USE_SUB
// after reading video params we should load subtitles because
// we know fps so now we can adjust subtitles time to ~6 seconds AST