-
Notifications
You must be signed in to change notification settings - Fork 3
Test #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Test #88
Conversation
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>
| m_video_sink_rect = {0, 0, 1920, 1080}; // Default video rectangle | ||
| m_GstPlayer = nullptr; | ||
| MIRACAST::logger_init("MiracastPlayer"); | ||
| } |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
No description provided.