Skip to content

Conversation

@yuvaramachandran-gurusamy
Copy link
Contributor

No description provided.

yuvaramachandran-gurusamy and others added 19 commits June 11, 2025 20:56
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
…nto feature/RDKEMW-1017_1018_miracast_comrpc_support
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
…ssue

Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
…ents API

Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
Signed-off-by: yuvaramachandran_gurusamy <yuvaramachandran_gurusamy@comcast.com>
@yuvaramachandran-gurusamy yuvaramachandran-gurusamy requested a review from a team as a code owner July 4, 2025 04:19
m_video_sink_rect = {0, 0, 1920, 1080}; // Default video rectangle
m_GstPlayer = nullptr;
MIRACAST::logger_init("MiracastPlayer");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Uninitialized pointer field

Non-static class member "_service" is not initialized in this constructor nor in any functions that it calls.

Medium Impact, CWE-457
UNINIT_CTOR

}
else
{
setEnableInternal(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Waiting while holding a lock

Call to "setEnableInternal" might sleep while holding lock "lck._M_device".

Medium Impact, CWE-667
SLEEP

}
else
{
setEnableInternal(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Waiting while holding a lock

Call to "setEnableInternal" might sleep while holding lock "lock._M_device".

Medium Impact, CWE-667
SLEEP

{
MIRACASTLOG_INFO("#### MCAST-TRIAGE-OK-WIFI DEVICE_WIFI_STATE [CONNECTING] ####");
{lock_guard<recursive_mutex> lock(m_EventMutex);
setEnableInternal(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Waiting while holding a lock

Call to "setEnableInternal" might sleep while holding lock "lck._M_device".

Medium Impact, CWE-667
SLEEP

{
MIRACASTLOG_INFO("#### MCAST-TRIAGE-OK-WIFI DEVICE_WIFI_STATE [CONNECTING] ####");
{lock_guard<recursive_mutex> lock(m_EventMutex);
setEnableInternal(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Waiting while holding a lock

Call to "setEnableInternal" might sleep while holding lock "lock._M_device".

Medium Impact, CWE-667
SLEEP

return;
}
lock_guard<mutex> lck(_instance->m_DiscoveryStateMutex);
_instance->setPowerStateInternal(newState);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Waiting while holding a lock

Call to "setPowerStateInternal" might sleep while holding lock "lck._M_device".

Medium Impact, CWE-667
SLEEP

if ( _instance->m_isServiceEnabled )
{
MIRACASTLOG_INFO("#### MCAST-TRIAGE-OK-PWR Miracast Discovery Disabled ####");
_instance->setEnableInternal(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Waiting while holding a lock

Call to "setEnableInternal" might sleep while holding lock "lock._M_device".

Medium Impact, CWE-667
SLEEP

}

public:
static Core::ProxyType<Core::IDispatch> Create(MiracastServiceImplementation *miracastServiceImplementation, Event event, ParamsType params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Big parameter passed by value

Passing parameter params of type "ParamsType" (size 136 bytes) by value, which exceeds the low threshold of 128 bytes.

Low Impact, CWE-398
PASS_BY_VALUE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants