Skip to content

Commit 159f15b

Browse files
committed
AVInput COM-RPC Support: WIP
1 parent 9c75504 commit 159f15b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

AVInput/AVInputImplementation.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,10 +1381,12 @@ namespace Plugin {
13811381
return ret;
13821382
}
13831383

1384-
Core::hresult AVInputImplementation::SetVRRSupport(const string& portId, const bool vrrSupport)
1384+
Core::hresult AVInputImplementation::SetVRRSupport(const string& portId, const bool vrrSupport, SuccessResult& successResult)
13851385
{
13861386
int id;
13871387

1388+
successResult.success = false;
1389+
13881390
try {
13891391
id = stoi(portId);
13901392
} catch (const std::exception& err) {
@@ -1395,6 +1397,7 @@ namespace Plugin {
13951397
Core::hresult ret = Core::ERROR_NONE;
13961398
try {
13971399
device::HdmiInput::getInstance().setVRRSupport(id, vrrSupport);
1400+
successResult.success = true;
13981401
LOGWARN("AVInput - vrrSupport:%d", vrrSupport);
13991402
} catch (const device::Exception& err) {
14001403
LOG_DEVICE_EXCEPTION1(std::to_string(id));

AVInput/AVInputImplementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace Plugin {
159159
Core::hresult GetEdidVersion(const string& portId, string& edidVersion, bool& success) override;
160160
Core::hresult SetEdid2AllmSupport(const string& portId, const bool allmSupport, SuccessResult& successResult) override;
161161
Core::hresult GetEdid2AllmSupport(const string& portId, bool& allmSupport, bool& success) override;
162-
Core::hresult SetVRRSupport(const string& portId, const bool vrrSupport) override;
162+
Core::hresult SetVRRSupport(const string& portId, const bool vrrSupport, SuccessResult& successResult) override;
163163
Core::hresult GetVRRSupport(const string& portId, bool& vrrSupport, bool& success) override;
164164
Core::hresult GetHdmiVersion(const string& portId, string& HdmiCapabilityVersion, bool& success) override;
165165
Core::hresult SetMixerLevels(const int primaryVolume, const int inputVolume, SuccessResult& successResult) override;

0 commit comments

Comments
 (0)