player: discard unused streamns

Shouldn’t make a difference right now. Just in case…
ffmpeg compatibility

Adds support for ffmpeg 2.2 and 1.2. Right now the maintenance overhead
of supporting both libav implementations is not that big.

Fixes #437 and #435.