[MPlayer-cvslog] r23570 - trunk/libmpdemux/demux_mpg.c

reimar subversion at mplayerhq.hu
Sun Jun 17 12:24:10 CEST 2007


Author: reimar
Date: Sun Jun 17 12:24:10 2007
New Revision: 23570

Log:
Set subtitle type in mpg demuxer. Fixes subtitle switching with 'j'
(previously subtitles would just disappear).


Modified:
   trunk/libmpdemux/demux_mpg.c

Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c	(original)
+++ trunk/libmpdemux/demux_mpg.c	Sun Jun 17 12:24:10 2007
@@ -423,8 +423,9 @@ static int demux_mpg_read_packet(demuxer
         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)



More information about the MPlayer-cvslog mailing list