aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2012-10-11 22:01:40 +0200
committermontellese <montellese@xbmc.org>2012-10-11 22:01:40 +0200
commitf8987535da7f3a1c5dd8f2b56de698e3d4889df3 (patch)
tree03045c61f7de0e91b878fec600809c9720d2edb4
parent8c1570f2119490873363bcfca47b3e1686f39bd2 (diff)
jsonrpc: fix Player.OnPropertyChanged notifications not being announced
-rw-r--r--xbmc/PlayListPlayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/PlayListPlayer.cpp b/xbmc/PlayListPlayer.cpp
index eb0d2e63f6..4eda276ae3 100644
--- a/xbmc/PlayListPlayer.cpp
+++ b/xbmc/PlayListPlayer.cpp
@@ -676,8 +676,8 @@ void CPlayListPlayer::Swap(int iPlaylist, int indexItem1, int indexItem2)
void CPlayListPlayer::AnnouncePropertyChanged(int iPlaylist, const std::string &strProperty, const CVariant &value)
{
if (strProperty.empty() || value.isNull() ||
- (iPlaylist == PLAYLIST_VIDEO && g_application.IsPlayingVideo()) ||
- (iPlaylist == PLAYLIST_MUSIC && g_application.IsPlayingAudio()))
+ (iPlaylist == PLAYLIST_VIDEO && !g_application.IsPlayingVideo()) ||
+ (iPlaylist == PLAYLIST_MUSIC && !g_application.IsPlayingAudio()))
return;
CVariant data;