From fd7d56ef622c7e3c03a69069801a46f56d7b7fd9 Mon Sep 17 00:00:00 2001 From: Dawid Juszczak Date: Thu, 17 Oct 2019 11:02:32 +0200 Subject: [PATCH] [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 --- src/mediacontroller/mediacontroller_server.cc | 5 ----- 1 file changed, 5 deletions(-) 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) { -- 2.7.4