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:
reimar 2007-06-17 10:24:10 +00:00
parent eb6179a168
commit 2c1ee29835
1 changed files with 2 additions and 1 deletions

View File

@ -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)