demux_mkv, demux_lavf: don't select initial audio track
commite3631231a1be57cbf854d5897cd9378249ffd865
authorUoti Urpala <uau@mplayer2.org>
Sat, 2 Apr 2011 19:39:01 +0000 (2 22:39 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sat, 2 Apr 2011 19:53:18 +0000 (2 22:53 +0300)
tree13318a93e2ceae5f844e9112c0f72cab8b81c17b
parent1bda89eabac6414d5f0f34d445793e9745b74e94
demux_mkv, demux_lavf: don't select initial audio track

Remove code that tries to select audio track during demuxer
initialization from demux_mkv and demux_lavf. Just leave audio
disabled at that point; the higher-level select_audio() function will
call the demuxer to switch track later anyway.

Removing this unneeded code also fixes use of these demuxers as the
main demuxer with -audiofile. Before the automatic track selection
would have enabled an audio track (if the file had any); as the main
demuxer was not used for audio the unused packets from this enabled
track would accumulate until they reached queue size limits.
libmpdemux/demux_lavf.c
libmpdemux/demux_mkv.c