huceke/omxplayer — pull request #122 by archiebawled (2013-02-21 21:34:08+00:00)
Title: automatically choose audio path

This is just a small patch to the omxplayer script, it uses use /opt/vc/bin/tvservice -s to find out if HDMI is being used, and if so adds "--adev hdmi" to the list of parameters.

I figured it would prevent most users needing to edit their omxplayer script (but I think those using HDMI-DVI converters would still need to)