diff options
author | wm4 <wm4@nowhere> | 2012-08-19 18:01:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:04:45 +0200 |
commit | 0f155921b046c9e6cfed3fe601aa891c2d2a8b16 (patch) | |
tree | ced8b2b76d00f3461bf12d0b5063ce2cf6fb8fe8 /sub/sub.c | |
parent | 13482fb397ce6bbcec8a9342015f21d48fb7efe6 (diff) | |
download | mpv-0f155921b046c9e6cfed3fe601aa891c2d2a8b16.tar.bz2 mpv-0f155921b046c9e6cfed3fe601aa891c2d2a8b16.tar.xz |
core: manage tracks in the frontend
Introduce a general track struct for every audio/video/subtitle track
known to the frontend. External files (subtitles) are now represented
as tracks too. This mainly serves to clean up the subtitle selection
code: now every subtitle is simply a track, instead of using a messy
numbering that goes by subtitle type (as it was stored in the
global_sub_pos field). The mplayer fontend will list external subtitle
files as additional tracks.
The timeline code now tries to match the exact demuxer IDs of all
tracks. This may cause problems when Matroska files with different
track numberings are used with EDL timelines. Change demux_lavf not
to set demuxer IDs, since most time they are not set.
Diffstat (limited to 'sub/sub.c')
-rw-r--r-- | sub/sub.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -289,7 +289,8 @@ void osd_draw_text_ext(struct osd_state *osd, int dxs, int dys, if(obj->flags&OSDFLAG_VISIBLE){ switch(obj->type){ case OSDTYPE_SPU: - vo_draw_spudec_sub(obj, draw_alpha, ctx); // FIXME + if (vo_spudec) + vo_draw_spudec_sub(obj, draw_alpha, ctx); // FIXME break; case OSDTYPE_OSD: case OSDTYPE_SUBTITLE: |