xbmc/xbmc — pull request #4384 by Memphiz (2014-03-09 22:00:19+00:00)
Title: [osxsink] - fix deadloop in drain

When cables are unplugged or tv is powered down the device vanishes and we might end up in an endless loop when the Engine tries to drain the sink.

This was confirmed fixing some tv poweroff/cable unplug issues as described here:

http://forum.xbmc.org/showthread.php?tid=185395

Backport of #4383