Permalink
Browse files

[airplay] - don' restore the volume when picture airplay is beeing st…

…opped
  • Loading branch information...
Memphiz committed Mar 30, 2014
1 parent 22bb16a commit 383391327737d7388d9a8b61ad410d93848d17cb
Showing with 7 additions and 1 deletion.
  1. +7 −1 xbmc/network/AirPlayServer.cpp
@@ -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)

0 comments on commit 3833913

Please sign in to comment.