aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2013-01-26 17:23:10 +0100
committermontellese <montellese@xbmc.org>2013-01-26 17:25:14 +0100
commitac48e166cec51c89c9c69851397bbbc1051be7d4 (patch)
tree11c0aa426e9c0488b2424989016882bb5646faf2
parent6a853176017aff006222d51bbce4f8289a6f5c85 (diff)
fix CApplicationMessenger::MediaStop() in case no playlistid has been provided
-rw-r--r--xbmc/ApplicationMessenger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/ApplicationMessenger.cpp b/xbmc/ApplicationMessenger.cpp
index 59c2ee23e3..4a626e94e6 100644
--- a/xbmc/ApplicationMessenger.cpp
+++ b/xbmc/ApplicationMessenger.cpp
@@ -471,7 +471,7 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
bool stopSlideshow = true;
bool stopVideo = true;
bool stopMusic = true;
- if (pMsg->dwParam1 >= 0)
+ if (pMsg->dwParam1 >= PLAYLIST_MUSIC && pMsg->dwParam1 <= PLAYLIST_PICTURE)
{
stopSlideshow = (pMsg->dwParam1 == PLAYLIST_PICTURE);
stopVideo = (pMsg->dwParam1 == PLAYLIST_VIDEO);