Skip to content

Commit edf04fd

Browse files
fixing build issues
1 parent 5c073c6 commit edf04fd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

AVInput/AVInput.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ AVInput* AVInput::_instance = nullptr;
112112

113113
AVInput::AVInput()
114114
: PluginHost::JSONRPC()
115-
, m_HdmiInEventsNotification(this)
116-
, m_CompositeInEventsNotification(this)
117115
, _registeredDsEventHandlers(false)
118116
{
119117
RegisterAll();
@@ -133,7 +131,7 @@ const string AVInput::Initialize(PluginHost::IShell * /* service */)
133131
LOGINFO("device::Manager::Initialize success");
134132
registerDsEventHandlers();
135133
}
136-
catch(...)
134+
catch(const device::Exception& err)
137135
{
138136
LOGINFO("device::Manager::Initialize failed");
139137
LOG_DEVICE_EXCEPTION0();
@@ -153,11 +151,11 @@ void AVInput::Deinitialize(PluginHost::IShell * /* service */)
153151
device::Manager::DeInitialize();
154152
LOGINFO("device::Manager::DeInitialize success");
155153
}
156-
catch(...)
154+
catch(const device::Exception& err)
157155
{
158156
LOGINFO("device::Manager::DeInitialize failed");
157+
LOG_DEVICE_EXCEPTION0();
159158
}
160-
DeInitializeDeviceManager();
161159

162160
AVInput::_instance = nullptr;
163161
}

AVInput/AVInput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AVInput: public PluginHost::IPlugin, public PluginHost::JSONRPC,
5555
template <typename T>
5656
T* baseInterface()
5757
{
58-
static_assert(std::is_base_of<T, DisplaySettings>(), "base type mismatch");
58+
static_assert(std::is_base_of<T, AVInput>(), "base type mismatch");
5959
return static_cast<T*>(this);
6060
}
6161

0 commit comments

Comments
 (0)