XBMC *Flac* via UPnP was fixed in v13.1 bugfix release
http://wiki.xbmc.org/index.php?title=Common_issues
I’m running a “Nightly version” and XBMC Flac streaming via UPnP to the WDTV works fine
XBMC 14.0-ALPHA1 Git:2014-07-29-d365123-dirty (Compiled: Jul 29 2014)
Make a XBMC Backup Select your OS/Platform, and download a Nightly
http://wiki.xbmc.org/index.php?title=development_builds
P.S. you will have to search “foobar” forums to see if foobar is foobar’d with streaming Flac via UPnP