Skip to content

Commit

Permalink
Fix no return value issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Jan 19, 2024
1 parent 17687f0 commit d6dcd0d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
7 changes: 0 additions & 7 deletions packages/video_player_avplay/tizen/src/drm_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ static std::string GetDrmSubType(int drm_type) {
}
}

std::unique_ptr<DrmManagerProxy> drm_manager_proxy_;
DrmManager::DrmManager()
: drm_manager_proxy_(std::make_unique<DrmManagerProxy>()),
drm_type_(DM_TYPE_NONE) {
Expand All @@ -42,11 +41,6 @@ DrmManager::~DrmManager() {
}

bool DrmManager::CreateDrmSession(int drm_type, bool local_mode) {
if (!drm_manager_proxy_) {
LOG_ERROR("[DrmManager] Invalid handle of libdrmmanager.");
return false;
}

if (local_mode) {
drm_manager_proxy_->DMGRSetDRMLocalMode();
}
Expand Down Expand Up @@ -212,7 +206,6 @@ int DrmManager::SetChallenge(const std::string &media_url) {
get_error_message(ret));
return ret;
}
initialized_ = true;
return ret;
}

Expand Down
1 change: 0 additions & 1 deletion packages/video_player_avplay/tizen/src/drm_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class DrmManager {

int drm_type_;
std::string license_server_url_;
bool initialized_ = false;
std::mutex queue_mutex_;
Ecore_Pipe *license_request_pipe_ = nullptr;
std::queue<DataForLicenseProcess> license_request_queue_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool DrmManagerProxy::DMGRSecurityInitCompleteCB(int* drm_handle,
if (dmgr_security_init_complete_cb_ == nullptr) {
return false;
}
dmgr_security_init_complete_cb_(drm_handle, len, pssh_data, user_data);
return dmgr_security_init_complete_cb_(drm_handle, len, pssh_data, user_data);
}

int DrmManagerProxy::DMGRReleaseDRMSession(DRMSessionHandle_t drm_session) {
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_avplay/tizen/src/drm_manager_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ typedef int (*FuncDMGRReleaseDRMSession)(DRMSessionHandle_t drm_session);

class DrmManagerProxy {
public:
DrmManagerProxy();
explicit DrmManagerProxy();
~DrmManagerProxy();
int DMGRSetData(DRMSessionHandle_t drm_session, const char* data_type,
void* input_data);
Expand Down

0 comments on commit d6dcd0d

Please sign in to comment.