diff mplayer.c @ 36337:805ff0c5b699

Support -alang and -slang for bluray://
author reimar
date Sun, 25 Aug 2013 17:57:25 +0000
parents 95ea180551c0
children 99708d402208
line wrap: on
line diff
--- a/mplayer.c	Sun Aug 25 17:23:22 2013 +0000
+++ b/mplayer.c	Sun Aug 25 17:57:25 2013 +0000
@@ -3312,6 +3312,15 @@
             dvdsub_id = bd_sid_from_lang(mpctx->stream, dvdsub_lang);
     }
 
+#ifdef CONFIG_LIBBLURAY
+    if (mpctx->stream->type == STREAMTYPE_BLURAY) {
+        if (audio_lang && audio_id == -1)
+            audio_id = bluray_id_from_lang(mpctx->stream, stream_ctrl_audio, audio_lang);
+        if (dvdsub_lang && dvdsub_id == -1)
+            dvdsub_id = bluray_id_from_lang(mpctx->stream, stream_ctrl_sub, dvdsub_lang);
+    }
+#endif
+
 #ifdef CONFIG_DVDREAD
     if (mpctx->stream->type == STREAMTYPE_DVD) {
         current_module = "dvd lang->id";