xbmc/xbmc — pull request #5209 by qaweizoux (2014-08-13 01:11:22+00:00)
Title: [Fix] Stale metadata/cover art when using airplay audio mirroring

This fixes an issue where stale metadata and cover art is displayed when using airplay audio mirroring. The following repros the issue:
(1) play a track from iTunes to the xbmc Airplay server
(2) stop play and exit iTunes
(3) enable airplay audio mirroring (option-left click on speaker icon in OS X)
(4) play audio from any other application (ex: Spotify, browser).

At this point, XBMC displays the cached track metadata and cover art from the track played in iTunes regardless of what is being streamed via mirroring.

This change clears the cached data at the start of an airplay stream. If using an airplay source that provides metadata/cover art (like iTunes), shairplay callbacks will set the proper values for these fields after initialization.