changeset 23550:1915012c8f7d

Set subtitle type in mpg demuxer. Fixes subtitle switching with 'j' (previously subtitles would just disappear).
author reimar
date Sun, 17 Jun 2007 10:24:10 +0000
parents 439dafcb16a5
children 63d9b7032bf3
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Sun Jun 17 08:29:26 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Sun Jun 17 10:24:10 2007 +0000
@@ -423,8 +423,9 @@
         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)