[mediacontroller][5.5] fix method to update playback item 98/215898/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.030714 accepted/tizen/5.5/unified/mobile/hotfix/20201027.065403 accepted/tizen/unified/20191018.054156 submit/tizen/20191017.093445 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
authorDawid Juszczak <d.juszczak@samsung.com>
Thu, 17 Oct 2019 09:02:32 +0000 (11:02 +0200)
committerDawid Juszczak <d.juszczak@samsung.com>
Thu, 17 Oct 2019 09:31:39 +0000 (09:31 +0000)
[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 <d.juszczak@samsung.com>
src/mediacontroller/mediacontroller_server.cc

index a33b071..23771f0 100644 (file)
@@ -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) {