mirror of https://github.com/mpv-player/mpv
Set subtitle type in mpg demuxer. Fixes subtitle switching with 'j'
(previously subtitles would just disappear). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23570 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
eb6179a168
commit
2c1ee29835
|
@ -423,8 +423,9 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){
|
|||
aid&=0x1F;
|
||||
|
||||
if(!demux->s_streams[aid]){
|
||||
sh_sub_t *sh = new_sh_sub(demux, aid);
|
||||
if (sh) sh->type = 'v';
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"==> Found subtitle: %d\n",aid);
|
||||
new_sh_sub(demux, aid);
|
||||
}
|
||||
|
||||
if(demux->sub->id > -1)
|
||||
|
|
Loading…
Reference in New Issue