File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -151,13 +151,31 @@ string AVInput::Information() const
151
151
152
152
void AVInput::InitializeDeviceManager ()
153
153
{
154
- registerDsEventHandlers ();
154
+ try
155
+ {
156
+ device::Manager::Initialize ();
157
+ LOGINFO (" device::Manager::Initialize success" );
158
+ registerDsEventHandlers ();
159
+ }
160
+ catch (...)
161
+ {
162
+ LOGINFO (" device::Manager::Initialize failed" );
163
+ }
164
+
155
165
}
156
166
157
167
void AVInput::DeInitializeDeviceManager ()
158
168
{
159
- device::Host::getInstance ().Unregister (_hdmiEventNotification);
160
- device::Host::getInstance ().Unregister (_compositeinEventNotification);
169
+
170
+ try
171
+ {
172
+ device::Manager::DeInitialize ();
173
+ LOGINFO (" device::Manager::DeInitialize success" );
174
+ }
175
+ catch (...)
176
+ {
177
+ LOGINFO (" device::Manager::DeInitialize failed" );
178
+ }
161
179
}
162
180
163
181
void AVInput::RegisterAll ()
You can’t perform that action at this time.
0 commit comments