xbmc/xbmc — pull request #4058 by Montellese (2014-01-20 18:24:46+00:00)
Title: UPnP: quirk to match Samsung's video/x-mkv mime type

This is an alternative approach to #3660. Samsung says it supports "video/x-mkv" instead of the expected "video/x-matroska" and therefore "Play using..." to a/my Samsung TV fails.

I decided to add a new GetMediaControllerQuirks() method similar to the existing GetClientQuirks() method to handle this so that we don't have to pollute the code (and especially not the code from the Platinum library we use) with a quick and dirty hack.

The main problem is that I don't really know if this is an issue with all UPnP-capable Samsung devices or if it would hit something that actually provides the proper "video/x-matroska" mime type.

In the last commit I added some calls to reset the timer that is used to wait for a response from the UPnP renderer. Right now we use the same timeout of a total of 10 seconds for all requests/responses which seems to be a bit close in my case. Sometimes it works, sometimes the last callback is received after 11 or 12 seconds. IMO resetting the timer should be done anyway to give every response the same amount if timeout.