added taglib-1.3.1 to tools
This commit is contained in:
parent
2a8113a892
commit
d3611a44aa
4 changed files with 107 additions and 4 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.31 $
|
||||
Version : $Revision: 1.32 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/src/WebStorageClient.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -225,6 +225,16 @@ static const std::string searchAudioClipResultParamName = "audioClipResults";
|
|||
*----------------------------------------------------------------------------*/
|
||||
static const std::string searchPlaylistResultParamName = "playlistResults";
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
* The name of the audio clip count parameter returned by the method
|
||||
*----------------------------------------------------------------------------*/
|
||||
static const std::string searchAudioClipCountParamName = "audioClipCnt";
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
* The name of the playlist count parameter returned by the method
|
||||
*----------------------------------------------------------------------------*/
|
||||
static const std::string searchPlaylistCountParamName = "playlistCnt";
|
||||
|
||||
|
||||
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playlist methods */
|
||||
|
||||
|
@ -2016,6 +2026,21 @@ WebStorageClient :: search(Ptr<SessionId>::Ref sessionId,
|
|||
playlistIds->push_back(uniqueId);
|
||||
}
|
||||
|
||||
return audioClipIds->size() + playlistIds->size();
|
||||
if (! result.hasMember(searchAudioClipCountParamName)
|
||||
|| result[searchAudioClipCountParamName].getType()
|
||||
!= XmlRpcValue::TypeInt
|
||||
|| ! result.hasMember(searchPlaylistCountParamName)
|
||||
|| result[searchPlaylistCountParamName].getType()
|
||||
!= XmlRpcValue::TypeInt) {
|
||||
std::stringstream eMsg;
|
||||
eMsg << "Missing or bad count returned by XML-RPC method '"
|
||||
<< searchMethodName
|
||||
<< "':\n"
|
||||
<< result;
|
||||
throw XmlRpcMethodResponseException(eMsg.str());
|
||||
}
|
||||
|
||||
return int(result[searchAudioClipCountParamName])
|
||||
+ int(result[searchPlaylistCountParamName]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue