Skip to content

Commit 39b9eef

Browse files
committed
handled return value
1 parent dee3405 commit 39b9eef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HdmiCecSink/HdmiCecSink.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "UtilsSearchRDKProfile.h"
3737
#include "exception.hpp"
3838
#include "hdmiIn.hpp"
39+
#include "dsError.h"
3940

4041
#define HDMICECSINK_METHOD_SET_ENABLED "setEnabled"
4142
#define HDMICECSINK_METHOD_GET_ENABLED "getEnabled"
@@ -3539,8 +3540,8 @@ namespace WPEFramework
35393540
do {
35403541
usleep(50000); // Sleep for 50ms before retrying
35413542
portId = -1;
3542-
device::HdmiInput::getInstance().getHDMIARCPortId(portId);
3543-
if (-1 != portId)
3543+
dsError_t error = device::HdmiInput::getInstance().getHDMIARCPortId(portId);
3544+
if (dsERR_NONE == error)
35443545
{
35453546
LOGINFO("HDMI ARC port ID HdmiArcPortID[%d] on retry count[%d]", portId, retryCount);
35463547
HdmiArcPortID = portId;

0 commit comments

Comments
 (0)