xbmc/xbmc — pull request #3099 by Voyager1 (2013-08-14 05:35:29+00:00)
Title: [fix] Prevent auto-selection of interlaced resolution when matching FPS

I have witnessed a consistent case where for FPS=25.000 the matching resolution selected on my TV was 1080i instead of 1080p.

Code-wise, the source material's interlaced flag is not used to find the closest resolution, so this was purely based on 'luck' or rather the order in which the resolution info was read at startup.
Furthermore, if you think about it, when you scale up e.g. 576i to 1080 (i or p), choosing an interlaced resolution is pointless because of the scaling!

So in summary, when searching for a good resolution that matches the FPS, we have to discard the interlaced ones from the list.

P.S. I also noticed subtitle position issues when rendering on 1080i... but will need to look into this in a separate effort.