core, demux: fix video index handling in stream switching
commitdf31b077b485da9084609806a92d5be2c37c1359
authorUoti Urpala <uau@mplayer2.org>
Wed, 30 Mar 2011 20:22:45 +0000 (30 23:22 +0300)
committerUoti Urpala <uau@mplayer2.org>
Wed, 30 Mar 2011 21:13:36 +0000 (31 00:13 +0300)
treecd3ac8b8090b4368c7e11328b79a6642a53435ed
parent5c731e2ea669bbc732e51dc95c1ec68cc41050e6
core, demux: fix video index handling in stream switching

Fix bugs in the handling of stream index values in video stream
switching. This is similar to what commit 90bedd0b872b6eea02351aafb62e
did for audio.

Also clean up the corresponding audio code a little bit.
command.c
libmpdemux/demuxer.c