Skip to content

Commit 0f23e9a

Browse files
committed
reverted init failure
1 parent b9491ac commit 0f23e9a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

HdmiCecSink/HdmiCecSink.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,6 @@ namespace WPEFramework
702702
catch(const device::Exception& err)
703703
{
704704
LOGINFO("HdmiCecSink plugin device::Manager::Initialize failed");
705-
msg = "HdmiCecSink plugin Initialize failed";
706705
LOG_DEVICE_EXCEPTION0();
707706
}
708707

@@ -714,8 +713,7 @@ namespace WPEFramework
714713
if (profileType == STB || profileType == NOT_FOUND)
715714
{
716715
LOGINFO("Invalid profile type for TV \n");
717-
msg = "Not supported";
718-
return msg;
716+
return (std::string("Not supported"));
719717
}
720718

721719
HdmiCecSink::_instance = this;
@@ -837,14 +835,13 @@ namespace WPEFramework
837835
catch(...)
838836
{
839837
LOGWARN("Exception while enabling CEC settings .\r\n");
840-
msg = "Exception while enabling CEC settings";
841838
}
842839
}
843840
getCecVersion();
844841
}
845842

846843
LOGINFO(" HdmiCecSink plugin Initialize completed \n");
847-
return msg;
844+
return (std::string());
848845

849846
}
850847

HdmiCecSource/HdmiCecSourceImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ namespace WPEFramework
424424
try
425425
{
426426
//TODO(MROLLINS) this is probably per process so we either need to be running in our own process or be carefull no other plugin is calling it
427-
//device::Manager::Initialize();
427+
device::Manager::Initialize();
428428

429429
#ifndef IO_HCEC_ENABLE_IARM
430430
device::Host::getInstance().Register(baseInterface<device::Host::IDisplayDeviceEvents>(), "WPE[HdmiCecSource]");

0 commit comments

Comments
 (0)