Skip to content

Commit 9361171

Browse files
committed
VPLAY-11225 [Tech Debt] mediafailed event enhancements ( minor code etc )
Reason for change: Added minor code for MediaFailedEvent Risks: Low Test Procedure: Refer jira ticket Priority: P1 Signed-off-by: lashmintha <[email protected]>
1 parent 492652d commit 9361171

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

priv_aamp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,11 +2853,11 @@ void PrivateInstanceAAMP::SendErrorEvent(AAMPTuneFailure tuneFailure, const char
28532853
SendAnomalyEvent(ANOMALY_ERROR, "Error[%d]:%s", tuneFailure, e->getDescription().c_str());
28542854
if (!mAppName.empty())
28552855
{
2856-
AAMPLOG_ERR("%s PLAYER[%d] APP: %s Sending error %s",(mbPlayEnabled?STRFGPLAYER:STRBGPLAYER), mPlayerId, mAppName.c_str(), e->getDescription().c_str());
2856+
AAMPLOG_ERR("%s PLAYER[%d] APP: %s Sending error %s code [%d:%d]",(mbPlayEnabled?STRFGPLAYER:STRBGPLAYER), mPlayerId, mAppName.c_str(), e->getDescription().c_str(),code, minorCode);
28572857
}
28582858
else
28592859
{
2860-
AAMPLOG_ERR("%s PLAYER[%d] Sending error %s",(mbPlayEnabled?STRFGPLAYER:STRBGPLAYER), mPlayerId, e->getDescription().c_str());
2860+
AAMPLOG_ERR("%s PLAYER[%d] Sending error %s code [%d:%d]",(mbPlayEnabled?STRFGPLAYER:STRBGPLAYER), mPlayerId, e->getDescription().c_str(),code, minorCode);
28612861
}
28622862

28632863
if (rate != AAMP_NORMAL_PLAY_RATE)

test/aampcli/Aampcli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ void MyAAMPEventListener::Event(const AAMPEventPtr& e)
503503
{
504504
MediaErrorEventPtr ev = std::dynamic_pointer_cast<MediaErrorEvent>(e);
505505
mAampcli.mTuneFailureDescription = ev->getDescription();
506-
AAMPCLI_PRINTF("[AAMPCLI] AAMP_EVENT_TUNE_FAILED reason=%s\n",mAampcli.mTuneFailureDescription.c_str());
506+
AAMPCLI_PRINTF("[AAMPCLI] AAMP_EVENT_TUNE_FAILED reason=%s code [%d:%d]\n",mAampcli.mTuneFailureDescription.c_str(),ev->getMajorCode(), ev->getMinorCode());
507507
break;
508508
}
509509
case AAMP_EVENT_SPEED_CHANGED:

0 commit comments

Comments
 (0)