Skip to content

Commit 35e9aca

Browse files
committed
AVInput COM-RPC Support: Moved ARM init into AVInput
1 parent a0125fc commit 35e9aca

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

AVInput/AVInput.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ namespace Plugin {
8989
_avInput = service->Root<Exchange::IAVInput>(_connectionId, 5000, _T("AVInputImplementation"));
9090

9191
if (nullptr != _avInput) {
92+
// <pca>
93+
_avInput->InitializeIARM();
94+
// </pca>
95+
9296
// Register for notifications
9397
_avInput->Register(_avInputNotification.baseInterface<Exchange::IAVInput::IDevicesChangedNotification>());
9498
_avInput->Register(_avInputNotification.baseInterface<Exchange::IAVInput::ISignalChangedNotification>());
@@ -117,6 +121,10 @@ namespace Plugin {
117121
_service->Unregister(&_avInputNotification);
118122

119123
if (nullptr != _avInput) {
124+
// <pca>
125+
_avInput->DeinitializeIARM();
126+
// </pca>
127+
120128
_avInput->Unregister(_avInputNotification.baseInterface<Exchange::IAVInput::IDevicesChangedNotification>());
121129
_avInput->Unregister(_avInputNotification.baseInterface<Exchange::IAVInput::ISignalChangedNotification>());
122130
_avInput->Unregister(_avInputNotification.baseInterface<Exchange::IAVInput::IInputStatusChangedNotification>());

AVInput/AVInputImplementation.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,16 @@ namespace Plugin {
4949
{
5050
LOGINFO("Create AVInputImplementation Instance");
5151
AVInputImplementation::_instance = this;
52-
InitializeIARM();
52+
// <pca>
53+
//InitializeIARM();
54+
// </pca>
5355
}
5456

5557
AVInputImplementation::~AVInputImplementation()
5658
{
57-
DeinitializeIARM();
59+
// <pca>
60+
//DeinitializeIARM();
61+
// </pca>
5862

5963
AVInputImplementation::_instance = nullptr;
6064
_service = nullptr;

AVInput/AVInputImplementation.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ namespace Plugin {
117117
_avInputImplementation->Dispatch(_event, _params);
118118
}
119119

120+
// <pca>
121+
void InitializeIARM();
122+
void DeinitializeIARM();
123+
// </pca>
124+
120125
protected:
121126

122127
Job(AVInputImplementation* avInputImplementation, Event event, ParamsType& params)
@@ -201,8 +206,10 @@ namespace Plugin {
201206
int m_primVolume;
202207
int m_inputVolume; // Player Volume
203208

204-
void InitializeIARM();
205-
void DeinitializeIARM();
209+
// <pca>
210+
// void InitializeIARM();
211+
// void DeinitializeIARM();
212+
// </pca>
206213

207214
void dispatchEvent(Event, const ParamsType params);
208215
void Dispatch(Event event, const ParamsType params);

0 commit comments

Comments
 (0)