[MPlayer-cvslog] r26849 - trunk/libmpdemux/demux_demuxers.c

reimar subversion at mplayerhq.hu
Wed May 21 20:45:31 CEST 2008


Author: reimar
Date: Wed May 21 20:45:30 2008
New Revision: 26849

Log:
Make internal subtitle and subtitle switching work with -audiofile


Modified:
   trunk/libmpdemux/demux_demuxers.c

Modified: trunk/libmpdemux/demux_demuxers.c
==============================================================================
--- trunk/libmpdemux/demux_demuxers.c	(original)
+++ trunk/libmpdemux/demux_demuxers.c	Wed May 21 20:45:30 2008
@@ -38,6 +38,11 @@ demuxer_t*  new_demuxers_demuxer(demuxer
   ret->audio = ad->audio;
   ret->sub = sd->sub;
 
+  // HACK?, necessary for subtitle (and audio and video when implemented) switching
+  memcpy(ret->v_streams, vd->v_streams, sizeof(ret->v_streams));
+  memcpy(ret->a_streams, ad->a_streams, sizeof(ret->a_streams));
+  memcpy(ret->s_streams, sd->s_streams, sizeof(ret->s_streams));
+
   ret->desc = &demuxer_desc_demuxers;
 
   return ret;



More information about the MPlayer-cvslog mailing list