From: Dawid Juszczak Date: Thu, 17 Oct 2019 09:02:32 +0000 (+0200) Subject: [mediacontroller][5.5] fix method to update playback item X-Git-Tag: accepted/tizen/5.5/unified/20191031.030714^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F215898%2F2;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [mediacontroller][5.5] fix method to update playback item [ACR] http://suprem.sec.samsung.net/jira/browse/TWDAPI-240 [description] removed checking if playlist exists on device, because some 3rd party application can get the playlist from the 3rd party server(such as cloud) directly and we don't have any information about its name and index [verification] MediaControllerServer_updatePlaybackItem_invalid.html - only this testcase fails (from tct-mediacontroller-tizen-tests). It needs to be changed/removed Change-Id: I7809b662a2eb9b99af3690892133e85ed9b41865 Signed-off-by: Dawid Juszczak --- diff --git a/src/mediacontroller/mediacontroller_server.cc b/src/mediacontroller/mediacontroller_server.cc index a33b071..23771f0 100644 --- a/src/mediacontroller/mediacontroller_server.cc +++ b/src/mediacontroller/mediacontroller_server.cc @@ -600,11 +600,6 @@ PlatformResult MediaControllerServer::UpdatePlaybackItem(const std::string& play const std::string& index) { ScopeLogger(); - if (playlist_handle_map_.find(playlist_name) == playlist_handle_map_.end()) { - return LogAndCreateResult(ErrorCode::INVALID_VALUES_ERR, - "Playlist with given name doesn't exist"); - } - int ret = mc_server_set_playlist_item_info(handle_, playlist_name.c_str(), index.c_str()); if (MEDIA_CONTROLLER_ERROR_NONE != ret) {