aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalard <malard@svn>2010-08-24 21:42:19 +0000
committermalard <malard@svn>2010-08-24 21:42:19 +0000
commit1d860538df5a128a01f2de993f60b7dbeddee864 (patch)
tree784530e3cc79b9c3ddc880187c56775daa1dbf66
parentf0ced02a4e6f7e75196d90415e1c27d83e33b15d (diff)
fixed: JSONRPC *Playlist.Play fails to play the default track in the playlist; bad patch merge
Trac #9726 git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@33107 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/lib/libjsonrpc/AVPlayerOperations.cpp2
-rw-r--r--xbmc/lib/libjsonrpc/AVPlaylistOperations.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/lib/libjsonrpc/AVPlayerOperations.cpp b/xbmc/lib/libjsonrpc/AVPlayerOperations.cpp
index f1fd3246f9..37a801517e 100644
--- a/xbmc/lib/libjsonrpc/AVPlayerOperations.cpp
+++ b/xbmc/lib/libjsonrpc/AVPlayerOperations.cpp
@@ -32,7 +32,7 @@ using namespace JSONRPC;
JSON_STATUS CAVPlayerOperations::State(const CStdString &method, ITransportLayer *transport, IClient *client, const Value &parameterObject, Value &result)
{
if (!IsCorrectPlayer(method))
- g_playlistPlayer.SetCurrentPlaylist(GetPlaylist(method));
+ return FailedToExecute;
result["playing"] = g_application.IsPlaying();
result["paused"] = g_application.IsPaused();
diff --git a/xbmc/lib/libjsonrpc/AVPlaylistOperations.cpp b/xbmc/lib/libjsonrpc/AVPlaylistOperations.cpp
index e4a6fb6997..11dad4ac48 100644
--- a/xbmc/lib/libjsonrpc/AVPlaylistOperations.cpp
+++ b/xbmc/lib/libjsonrpc/AVPlaylistOperations.cpp
@@ -35,7 +35,7 @@ using namespace std;
JSON_STATUS CAVPlaylistOperations::Play(const CStdString &method, ITransportLayer *transport, IClient *client, const Value &parameterObject, Value &result)
{
if (g_playlistPlayer.GetCurrentPlaylist() != GetPlaylist(method))
- return FailedToExecute;
+ g_playlistPlayer.SetCurrentPlaylist(GetPlaylist(method));
if (parameterObject.isInt())
g_application.getApplicationMessenger().PlayListPlayerPlay(parameterObject.asInt());