summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authormosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-10 11:16:44 +0000
committermosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-10 11:16:44 +0000
commitadcae3e0515c1f75d19cec0fb2af8ab0113a201c (patch)
treef50bc0814c486921b4ce31bcec8cab82b29916b1 /mplayer.c
parentbe7eef3827543d529b6a1314d4e743a4d48a0075 (diff)
downloadmpv-adcae3e0515c1f75d19cec0fb2af8ab0113a201c.tar.bz2
mpv-adcae3e0515c1f75d19cec0fb2af8ab0113a201c.tar.xz
Support for the "custom colors" and "forced subtitles" entries in the VobSub idx. Made the parser handle whitespaces better.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12551 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index a495537029..eba47eb99b 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1603,10 +1603,13 @@ if (vo_spudec==NULL && stream->type==STREAMTYPE_DVD) {
#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')) {
+ mkv_sh_sub_t *mkv_sh_sub = (mkv_sh_sub_t *)d_dvdsub->sh;
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);
+ vo_spudec =
+ spudec_new_scaled_vobsub(mkv_sh_sub->palette, mkv_sh_sub->colors,
+ mkv_sh_sub->custom_colors, mkv_sh_sub->width,
+ mkv_sh_sub->height);
+ forced_subs_only = mkv_sh_sub->forced_subs_only;
}
#endif