# HG changeset patch # User reimar # Date 1345891850 0 # Node ID 6077de703cf4a44af685728fff3ead5aad91bcd5 # Parent 3ac4db5f0f3e3e5fff1d06f3459d1cf45e4a9df6 When switching programs select subtitle stream regardless of whether the format is text, ASS, bitmap or whatever. There probably was some good reason for the condition but it got lost in time and special-casing CODEC_ID_TEXT over other test-based subtitles doesn't seem to make much sense. diff -r 3ac4db5f0f3e -r 6077de703cf4 libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Sat Aug 25 05:27:38 2012 +0000 +++ b/libmpdemux/demux_lavf.c Sat Aug 25 10:50:50 2012 +0000 @@ -812,7 +812,7 @@ prog->aid = program->stream_index[i]; break; case AVMEDIA_TYPE_SUBTITLE: - if(prog->sid == -2 && priv->avfc->streams[program->stream_index[i]]->codec->codec_id == CODEC_ID_TEXT) + if(prog->sid == -2) prog->sid = program->stream_index[i]; break; }