core: do proper audio track selection for -audiofile demuxer
commit1bda89eabac6414d5f0f34d445793e9745b74e94
authorUoti Urpala <uau@mplayer2.org>
Sat, 2 Apr 2011 19:26:03 +0000 (2 22:26 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sat, 2 Apr 2011 19:26:03 +0000 (2 22:26 +0300)
treec72e165e3570ea9b8c9f2cf74d19ca027384e64e
parentadc941419db43f457e99ba3f97db520e3417219b
core: do proper audio track selection for -audiofile demuxer

The select_audio() call was done on the main demuxer, not -audiofile
one (the "if (mpctx->num_sources)" test in the previous code was
always true). Call it on the -audiofile demuxer instead. The
-audiofile stuff still needs a proper cleanup later though.
mplayer.c