# HG changeset patch # User reimar # Date 1211395530 0 # Node ID a0c157a99aacd684b237063c988c332eac2c378b # Parent e77942d2d664b8c291c13574637617d1055a1dc9 Make internal subtitle and subtitle switching work with -audiofile diff -r e77942d2d664 -r a0c157a99aac libmpdemux/demux_demuxers.c --- 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;