Mercurial > mplayer.hg
changeset 26817:a0c157a99aac
Make internal subtitle and subtitle switching work with -audiofile
author | reimar |
---|---|
date | Wed, 21 May 2008 18:45:30 +0000 |
parents | e77942d2d664 |
children | 089ac698f8b1 |
files | libmpdemux/demux_demuxers.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_demuxers.c Wed May 21 18:21:05 2008 +0000 +++ b/libmpdemux/demux_demuxers.c Wed May 21 18:45:30 2008 +0000 @@ -38,6 +38,11 @@ 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;