forked from rdkcentral/aamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAampStreamSinkManager.cpp
More file actions
618 lines (557 loc) · 17.9 KB
/
AampStreamSinkManager.cpp
File metadata and controls
618 lines (557 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2023 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file aampstreamsinkmanager.cpp
* @brief manages stream sink of gstreamer
*/
#include "AampStreamSinkManager.h"
#include "priv_aamp.h"
AampStreamSinkManager::AampStreamSinkManager() :
mGstPlayer(nullptr),
mClientStreamSinkMap(),
mActiveGstPlayersMap(),
mInactiveGstPlayersMap(),
mEncryptedHeaders(),
mPipelineMode(ePIPELINEMODE_UNDEFINED),
mStreamSinkMutex(),
mEncryptedAamp(nullptr),
mEncryptedHeadersInjected(false)
{
}
AampStreamSinkManager::~AampStreamSinkManager()
{
Clear();
}
void AampStreamSinkManager::Clear(void)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
for (auto it = mClientStreamSinkMap.begin(); it != mClientStreamSinkMap.end();)
{
// Don't delete the StreamSink as client owned
it = mClientStreamSinkMap.erase(it);
}
for (auto it = mInactiveGstPlayersMap.begin(); it != mInactiveGstPlayersMap.end();)
{
delete(it->second);
it = mInactiveGstPlayersMap.erase(it);
}
if (mActiveGstPlayersMap.size())
{
for (auto it = mActiveGstPlayersMap.begin(); it != mActiveGstPlayersMap.end();)
{
delete(it->second);
it = mActiveGstPlayersMap.erase(it);
}
mGstPlayer = nullptr;
}
else
{
if (mGstPlayer)
{
delete (mGstPlayer);
mGstPlayer = nullptr;
}
}
mPipelineMode = ePIPELINEMODE_UNDEFINED;
mEncryptedHeaders.clear();
mEncryptedHeadersInjected = false;
}
void AampStreamSinkManager::SetSinglePipelineMode(PrivateInstanceAAMP *aamp)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
switch(mPipelineMode)
{
case ePIPELINEMODE_UNDEFINED:
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Pipeline mode set to Single", this );
mPipelineMode = ePIPELINEMODE_SINGLE;
if (!mEncryptedHeaders.empty())
{
AAMPLOG_ERR("AampStreamSinkManager(%p) Encrypted headers already been set", this );
}
// Retain matching GstPlayer player, remove others
for (auto it = mActiveGstPlayersMap.begin(); it != mActiveGstPlayersMap.end();)
{
if (aamp == it->first)
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Retaining GstPlayer created for PLAYER[%d]", this, it->first->mPlayerId);
mGstPlayer = it->second;
it++;
}
else
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Deleting GstPlayer created for PLAYER[%d]", this, it->first->mPlayerId);
delete(it->second);
it = mActiveGstPlayersMap.erase(it);
}
}
}
break;
case ePIPELINEMODE_SINGLE:
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Pipeline mode already set as Single", this );
}
break;
case ePIPELINEMODE_MULTI:
{
AAMPLOG_ERR("AampStreamSinkManager(%p) Pipeline mode already set Multi", this );
}
break;
}
}
void AampStreamSinkManager::CreateStreamSink(PrivateInstanceAAMP *aamp, id3_callback_t id3HandlerCallback, std::function< void(const unsigned char *, int, int, int) > exportFrames)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
AampStreamSinkInactive *inactiveSink = new AampStreamSinkInactive(id3HandlerCallback); /* For every instance of aamp, there should be an AampStreamSinkInactive object*/
mInactiveGstPlayersMap.insert({aamp,inactiveSink});
switch(mPipelineMode)
{
case ePIPELINEMODE_SINGLE:
{
if (mGstPlayer == nullptr)
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, creating GstPlayer for PLAYER[%d]", this, aamp->mPlayerId);
mGstPlayer = new AAMPGstPlayer(aamp, id3HandlerCallback, exportFrames);
mActiveGstPlayersMap.insert({aamp, mGstPlayer});
}
else
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, not creating GstPlayer for PLAYER[%d]", this, aamp->mPlayerId);
}
}
break;
case ePIPELINEMODE_UNDEFINED:
case ePIPELINEMODE_MULTI:
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) %s Pipeline mode, creating GstPlayer for PLAYER[%d]", this,
mPipelineMode == ePIPELINEMODE_UNDEFINED ? "Undefined" : "Multi", aamp->mPlayerId);
AAMPGstPlayer *gstPlayer = new AAMPGstPlayer(aamp, id3HandlerCallback, exportFrames);
mActiveGstPlayersMap.insert({aamp, gstPlayer});
}
break;
}
}
void AampStreamSinkManager::SetStreamSink(PrivateInstanceAAMP *aamp, StreamSink *clientSink)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
AAMPLOG_WARN("AampStreamSinkManager(%p) SetStreamSink for PLAYER[%d] clientSink %p", this, aamp->mPlayerId, clientSink);
switch(mPipelineMode)
{
case ePIPELINEMODE_SINGLE:
{
AAMPLOG_ERR("AampStreamSinkManager(%p) Single Pipeline mode, when setting client StreamSink", this );
}
break;
case ePIPELINEMODE_UNDEFINED:
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Undefined Pipeline, forcing to Multi Pipeline PLAYER[%d]", this, aamp->mPlayerId);
mPipelineMode = ePIPELINEMODE_MULTI;
}
break;
case ePIPELINEMODE_MULTI:
{
// Do nothing
}
break;
}
mClientStreamSinkMap.insert({aamp, clientSink});
}
void AampStreamSinkManager::DeleteStreamSink(PrivateInstanceAAMP *aamp)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) DeleteStreamSink for PLAYER[%d]", this, aamp->mPlayerId);
switch(mPipelineMode)
{
case ePIPELINEMODE_SINGLE:
{
if (mActiveGstPlayersMap.size() &&
(aamp == mActiveGstPlayersMap.begin()->first))
{
/* Erase the map of active player*/
mActiveGstPlayersMap.erase(aamp);
AAMPLOG_WARN("AampStreamSinkManager(%p) No active players present", this );
}
if (mInactiveGstPlayersMap.count(aamp))
{
AampStreamSinkInactive* sink = mInactiveGstPlayersMap[aamp];
mInactiveGstPlayersMap.erase(aamp);
delete sink;
}
if (mInactiveGstPlayersMap.size())
{
AAMPLOG_WARN("AampStreamSinkManager(%p) %zu Inactive players present", this, mInactiveGstPlayersMap.size());
// check the sink was not attached to the player that is being deleted
if (mGstPlayer->IsAssociatedAamp(aamp))
{
if (mActiveGstPlayersMap.size() == 0)
{
// attach it to one of the existing inactive players
AAMPLOG_WARN("AampStreamSinkManager(%p) Deleting player associated with sink! Attaching sink to default inactive PLAYER[%d]", this, mInactiveGstPlayersMap.begin()->first->mPlayerId);
mGstPlayer->ChangeAamp(mInactiveGstPlayersMap.begin()->first,
mInactiveGstPlayersMap.begin()->second->GetID3MetadataHandler());
}
}
}
else
{
AAMPLOG_WARN("AampStreamSinkManager(%p) No inactive players present, deleting GStreamer Pipeline PLAYER[%d]", this, aamp->mPlayerId);
delete(mGstPlayer);
mGstPlayer = nullptr;
mPipelineMode = ePIPELINEMODE_UNDEFINED;
mEncryptedHeadersInjected = false;
}
}
break;
case ePIPELINEMODE_UNDEFINED:
case ePIPELINEMODE_MULTI:
{
if (mInactiveGstPlayersMap.count(aamp))
{
AampStreamSinkInactive* sink = mInactiveGstPlayersMap[aamp];
mInactiveGstPlayersMap.erase(aamp);
delete(sink);
}
if (mActiveGstPlayersMap.count(aamp))
{
AAMPGstPlayer* sink = mActiveGstPlayersMap[aamp];
mActiveGstPlayersMap.erase(aamp);
delete(sink);
}
// If client supplied StreamSink just remove from map, don't delete
if (mClientStreamSinkMap.count(aamp))
{
mClientStreamSinkMap.erase(aamp);
}
}
break;
}
}
void AampStreamSinkManager::SetEncryptedHeaders(PrivateInstanceAAMP *aamp, std::map<int, std::string>& mappedHeaders)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
switch(mPipelineMode)
{
case ePIPELINEMODE_UNDEFINED:
case ePIPELINEMODE_MULTI:
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Ignore set encrypted headers", this );
}
break;
case ePIPELINEMODE_SINGLE:
{
if (!mEncryptedHeaders.empty())
{
AAMPLOG_INFO("AampStreamSinkManager(%p) Encrypted headers have already been set PLAYER[%d]", this, aamp->mPlayerId);
}
else if (mGstPlayer != nullptr)
{
AAMPLOG_INFO("AampStreamSinkManager(%p) Set encrypted player to PLAYER[%d]", this, aamp->mPlayerId);
mGstPlayer->SetEncryptedAamp(aamp);
mEncryptedHeaders = mappedHeaders;
}
else
{
AAMPLOG_ERR("AampStreamSinkManager(%p) No active StreamSink PLAYER[%d]", this, aamp->mPlayerId);
}
}
break;
}
}
void AampStreamSinkManager::ReinjectEncryptedHeaders()
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
mEncryptedHeadersInjected = false;
}
void AampStreamSinkManager::GetEncryptedHeaders(std::map<int, std::string>& mappedHeaders)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
if (!mEncryptedHeadersInjected)
{
mappedHeaders = mEncryptedHeaders;
mEncryptedHeadersInjected = true;
}
else
{
AAMPLOG_INFO("AampStreamSinkManager(%p) Encrypted headers already injected", this );
mappedHeaders.clear();
}
}
void AampStreamSinkManager::DeactivatePlayer(PrivateInstanceAAMP *aamp, bool stop)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
switch(mPipelineMode)
{
case ePIPELINEMODE_UNDEFINED:
case ePIPELINEMODE_MULTI:
break;
case ePIPELINEMODE_SINGLE:
{
if (mActiveGstPlayersMap.size() == 0)
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, no current active PLAYER[%d]", this, aamp->mPlayerId);
}
else if (mActiveGstPlayersMap.begin()->first == aamp)
{
if (stop)
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, deactivating and stopping active PLAYER[%d]", this, aamp->mPlayerId);
mEncryptedHeadersInjected = false;
mEncryptedHeaders.clear();
}
else
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, deactivating active PLAYER[%d]", this, aamp->mPlayerId);
}
mActiveGstPlayersMap.erase(aamp);
}
else
{
// Can happen when Stop is called after Detach has already been called
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, asked to deactivate PLAYER[%d] when current active PLAYER[%d]", this, aamp->mPlayerId, mActiveGstPlayersMap.begin()->first->mPlayerId);
}
}
break;
}
}
void AampStreamSinkManager::ActivatePlayer(PrivateInstanceAAMP *aamp)
{
// N.B. GetPositionMs() must be called before locking the StreamSink mutex, to avoid deadlock.
// This is because PrivateInstanceAAMP::GetPositionRelativeToSeekMilliseconds() calls
// GetStreamSink, which also locks mStreamSinkMutex.
double position = aamp->GetPositionMs() / 1000.00;
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
switch(mPipelineMode)
{
case ePIPELINEMODE_SINGLE:
{
if (mActiveGstPlayersMap.size() == 0)
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, no current active player", this );
}
else if (mActiveGstPlayersMap.begin()->first == aamp)
{
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, already active PLAYER[%d]", this, aamp->mPlayerId);
}
else
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, resetting current active PLAYER[%d]", this, mActiveGstPlayersMap.begin()->first->mPlayerId);
mActiveGstPlayersMap.clear();
}
if (mActiveGstPlayersMap.size() == 0)
{
if (mGstPlayer != nullptr)
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Single Pipeline mode, setting active PLAYER[%d]", this, aamp->mPlayerId);
mActiveGstPlayersMap.insert({aamp, mGstPlayer});
SetActive(aamp, position);
}
else
{
AAMPLOG_ERR("AampStreamSinkManager(%p) Single Pipeline mode, mGstPlayer is null, can't set active PLAYER[%d]", this, aamp->mPlayerId);
}
}
}
break;
case ePIPELINEMODE_UNDEFINED:
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_WARN("AampStreamSinkManager(%p) Undefined Pipeline, forcing to Multi Pipeline PLAYER[%d]", this, aamp->mPlayerId);
mPipelineMode = ePIPELINEMODE_MULTI;
}
break;
case ePIPELINEMODE_MULTI:
{
//Do not edit or remove this log - it is used in L2 test
AAMPLOG_INFO("AampStreamSinkManager(%p) Multi Pipeline mode, do nothing PLAYER[%d]", this, aamp->mPlayerId);
}
break;
}
}
void AampStreamSinkManager::SetActive(PrivateInstanceAAMP *aamp, double position)
{
AAMPLOG_INFO("AampStreamSinkManager(%p) Setting PLAYER[%d] active, position(%f)", this, aamp->mPlayerId, position);
mGstPlayer->ChangeAamp(aamp, mInactiveGstPlayersMap[aamp]->GetID3MetadataHandler());
aamp->mIsFlushOperationInProgress = true;
mGstPlayer->Flush(position, aamp->rate, true);
aamp->mIsFlushOperationInProgress = false;
mGstPlayer->SetSubtitleMute(aamp->subtitles_muted);
if(!aamp->IsTuneCompleted() && aamp->IsPlayEnabled() && (mPipelineMode == ePIPELINEMODE_SINGLE))
{
mGstPlayer->ResetFirstFrame();
}
}
/**
* @brief Creates a singleton instance of AampStreamSinkManager
*/
AampStreamSinkManager& AampStreamSinkManager::GetInstance()
{
static AampStreamSinkManager instance;
return instance;
}
StreamSink* AampStreamSinkManager::GetActiveStreamSink(PrivateInstanceAAMP *aamp)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
StreamSink *sink_ptr = nullptr;
switch(mPipelineMode)
{
case ePIPELINEMODE_UNDEFINED:
case ePIPELINEMODE_MULTI:
{
if (mClientStreamSinkMap.count(aamp))
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Returning matching client Stream Sink", this );
sink_ptr = mClientStreamSinkMap[aamp];
}
else if (mActiveGstPlayersMap.count(aamp))
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Returning matching Stream Sink", this );
sink_ptr = mActiveGstPlayersMap[aamp];
}
else
{
AAMPLOG_ERR("AampStreamSinkManager(%p) Stream Sink not found", this );
}
}
break;
case ePIPELINEMODE_SINGLE:
{
if (!mActiveGstPlayersMap.empty())
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Returning active Stream Sink found", this );
sink_ptr = mActiveGstPlayersMap.begin()->second;
}
else if (mGstPlayer != nullptr)
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) No active Stream Sink found, returning mGstPlayer", this );
sink_ptr = mGstPlayer;
}
else
{
AAMPLOG_ERR("AampStreamSinkManager(%p) Active Stream Sink not found", this );
}
}
break;
}
return sink_ptr;
}
StreamSink* AampStreamSinkManager::GetStreamSink(PrivateInstanceAAMP *aamp)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
return GetStreamSinkNoLock(aamp);
}
StreamSink* AampStreamSinkManager::GetStreamSinkNoLock(PrivateInstanceAAMP *aamp)
{
StreamSink *sink_ptr = nullptr;
if (mClientStreamSinkMap.count(aamp) != 0)
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Returning client Stream Sink found for PLAYER[%d]", this, aamp->mPlayerId);
sink_ptr = mClientStreamSinkMap[aamp];
}
else if (mActiveGstPlayersMap.count(aamp) != 0)
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Returning active Stream Sink found for PLAYER[%d]", this, aamp->mPlayerId);
sink_ptr = mActiveGstPlayersMap[aamp];
}
else if (mInactiveGstPlayersMap.count(aamp) != 0)
{
AAMPLOG_TRACE("AampStreamSinkManager(%p) Returning inactive Stream Sink found or PLAYER[%d]", this, aamp->mPlayerId);
sink_ptr = mInactiveGstPlayersMap[aamp];
}
else
{
// If not found, best not to dereference the pointer in case invalid
AAMPLOG_ERR("AampStreamSinkManager(%p) Stream Sink for aamp(%p) not found", this, aamp);
}
return sink_ptr;
}
StreamSink *AampStreamSinkManager::GetStoppingStreamSink(PrivateInstanceAAMP *aamp)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
StreamSink *sink_ptr = nullptr;
if ((mPipelineMode == ePIPELINEMODE_SINGLE) && mActiveGstPlayersMap.empty())
{
AAMPLOG_WARN("AampStreamSinkManager(%p) No active player, returning single-pipeline sink for PLAYER[%d]", this, aamp->mPlayerId);
sink_ptr = mGstPlayer;
}
else
{
AAMPLOG_INFO("AampStreamSinkManager(%p) Getting stream sink for PLAYER[%d]", this, aamp->mPlayerId);
sink_ptr = GetStreamSinkNoLock(aamp);
}
return sink_ptr;
}
void AampStreamSinkManager::UpdateTuningPlayer(PrivateInstanceAAMP *aamp)
{
std::lock_guard<std::mutex> lock(mStreamSinkMutex);
switch (mPipelineMode)
{
case ePIPELINEMODE_SINGLE:
{
if (mActiveGstPlayersMap.empty())
{
if (mGstPlayer == nullptr)
{
AAMPLOG_ERR(
"AampStreamSinkManager(%p) No single pipeline stream sink PLAYER[%d]",
this, aamp->mPlayerId);
}
else if (mInactiveGstPlayersMap.count(aamp) == 0)
{
AAMPLOG_ERR(
"AampStreamSinkManager(%p) No inactive stream sink for PLAYER[%d]",
this, aamp->mPlayerId);
}
else
{
AAMPLOG_WARN(
"AampStreamSinkManager(%p) Single pipeline stream sink with no active players, update player to PLAYER[%d]",
this, aamp->mPlayerId);
mGstPlayer->ChangeAamp(aamp,
mInactiveGstPlayersMap[aamp]->GetID3MetadataHandler());
}
}
else
{
AAMPLOG_INFO(
"AampStreamSinkManager(%p) Active stream sink exists, do not update PLAYER[%d]",
this, aamp->mPlayerId);
}
}
break;
case ePIPELINEMODE_UNDEFINED:
case ePIPELINEMODE_MULTI:
{
AAMPLOG_INFO("AampStreamSinkManager(%p) %s Pipeline mode, do not update PLAYER[%d]",
this,
mPipelineMode == ePIPELINEMODE_UNDEFINED ? "Undefined" : "Multi",
aamp->mPlayerId);
}
break;
}
}