Mercurial > mplayer.hg
comparison libmpdemux/demux_ts.c @ 32775:3e141cd16ef3
Set subtitle stream type correctly for DVB subtitles in TS demuxer.
author | reimar |
---|---|
date | Sun, 06 Feb 2011 11:45:17 +0000 |
parents | 2e5c286a464a |
children | 9cc2689e5cd1 |
comparison
equal
deleted
inserted
replaced
32774:dfeea3d3b2d0 | 32775:3e141cd16ef3 |
---|---|
404 if(IS_SUB(es->type) && priv->last_sid+1 < MAX_S_STREAMS) | 404 if(IS_SUB(es->type) && priv->last_sid+1 < MAX_S_STREAMS) |
405 { | 405 { |
406 sh_sub_t *sh = new_sh_sub_sid(demuxer, priv->last_sid, es->pid, pid_lang_from_pmt(priv, es->pid)); | 406 sh_sub_t *sh = new_sh_sub_sid(demuxer, priv->last_sid, es->pid, pid_lang_from_pmt(priv, es->pid)); |
407 if (sh) { | 407 if (sh) { |
408 switch (es->type) { | 408 switch (es->type) { |
409 case SPU_DVB: | |
410 sh->type = 'b'; break; | |
409 case SPU_DVD: | 411 case SPU_DVD: |
410 sh->type = 'v'; break; | 412 sh->type = 'v'; break; |
411 case SPU_PGS: | 413 case SPU_PGS: |
412 sh->type = 'p'; break; | 414 sh->type = 'p'; break; |
413 } | 415 } |