xbmc/xbmc — pull request #1959 by jmarshallnz (2012-12-19 06:46:09+00:00)
Title: Prefer the duration from the stream unless it's smaller than <runtime>

The current problem of preferring the stream duration if it's non-zero doesn't work for stacks, where the stream duration is the duration of the first part.

This fixes it to use the stream duration if it's less than 60% of the runtime, which should mean all stacks with accurate runtime will use that in preference.

@Montellese to review.