diff mplayer.c @ 11153:cb82b062188f

Support for VobSub-in-Matroska; parts outside of demux_mkv.cpp.
author mosu
date Thu, 16 Oct 2003 21:06:43 +0000
parents 2f7c74ce8c9a
children e237083ad025
line wrap: on
line diff
--- a/mplayer.c	Thu Oct 16 16:31:56 2003 +0000
+++ b/mplayer.c	Thu Oct 16 21:06:43 2003 +0000
@@ -104,6 +104,9 @@
 static int last_dvb_step = 1;
 #endif
 
+#ifdef HAVE_MATROSKA
+#include "libmpdemux/matroska.h"
+#endif
 
 //**************************************************************************//
 //             Playtree
@@ -1602,6 +1605,16 @@
 }
 #endif
 
+#ifdef HAVE_MATROSKA
+if ((vo_spudec == NULL) && (demuxer->type == DEMUXER_TYPE_MATROSKA) &&
+    (d_dvdsub->sh != NULL) && (((mkv_sh_sub_t *)d_dvdsub->sh)->type == 'v')) {
+  current_module = "spudec_init_matroska";
+  vo_spudec = spudec_new_scaled(((mkv_sh_sub_t *)d_dvdsub->sh)->palette,
+                                ((mkv_sh_sub_t *)d_dvdsub->sh)->width,
+                                ((mkv_sh_sub_t *)d_dvdsub->sh)->height);
+}
+#endif
+
 if (vo_spudec==NULL) {
   current_module="spudec_init_normal";
   vo_spudec=spudec_new_scaled(NULL, sh_video->disp_w, sh_video->disp_h);