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
151151
152152void AVInput::InitializeDeviceManager ()
153153{
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+
155165}
156166
157167void AVInput::DeInitializeDeviceManager ()
158168{
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+ }
161179}
162180
163181void AVInput::RegisterAll ()
You can’t perform that action at this time.
0 commit comments