Reflect (internal) API changes made to the IStreamSource interface.
Change-Id: I5cde6bc0d4bd9c62b4851d7e6375cd9216c7c062
related-to-bug: 5553055
diff --git a/src/android/android_StreamPlayer.cpp b/src/android/android_StreamPlayer.cpp
index 3847520..e2fa670 100644
--- a/src/android/android_StreamPlayer.cpp
+++ b/src/android/android_StreamPlayer.cpp
@@ -24,6 +24,7 @@
#include <media/stagefright/foundation/ADebug.h>
#include <binder/IPCThreadState.h>
+#include "mpeg2ts/ATSParser.h"
//--------------------------------------------------------------------------------------------------
namespace android {
@@ -161,7 +162,10 @@
} else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_FORMAT_CHANGE) {
sp<AMessage> msg = new AMessage();
// positive value for format change key makes the discontinuity "hard", see key def
- msg->setInt32(IStreamListener::kKeyFormatChange, (int32_t) 1);
+ msg->setInt32(
+ IStreamListener::kKeyDiscontinuityMask,
+ ATSParser::DISCONTINUITY_FORMATCHANGE);
+
receivedCmd_l(IStreamListener::DISCONTINUITY, msg /*msg*/);
}
if (oldFront->mItems.mTsCmdData.mTsCmdCode & (ANDROID_MP2TSEVENT_DISCONTINUITY |