Skip to content

Commit

Permalink
[airplay] - don' restore the volume when picture airplay is beeing st…
Browse files Browse the repository at this point in the history
…opped
  • Loading branch information
Memphiz committed Mar 31, 2014
1 parent 22bb16a commit 3833913
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/network/AirPlayServer.cpp
Expand Up @@ -160,7 +160,13 @@ void CAirPlayServer::Announce(AnnouncementFlag flag, const char *sender, const c
{
if (strcmp(message, "OnStop") == 0)
{
restoreVolume();
bool shouldRestoreVolume = true;
if (data.isMember("player") && data["player"].isMember("playerid"))
shouldRestoreVolume = (data["player"]["playerid"] != PLAYLIST_PICTURE);

if (shouldRestoreVolume)
restoreVolume();

ServerInstance->AnnounceToClients(EVENT_STOPPED);
}
else if (strcmp(message, "OnPlay") == 0)
Expand Down

0 comments on commit 3833913

Please sign in to comment.