am 7898a5c5: Reflect (internal) API changes made to the IStreamSource interface.
* commit '7898a5c5f283c9487da48ef92f623c149d8a7a72':
Reflect (internal) API changes made to the IStreamSource interface.
diff --git a/src/android/android_StreamPlayer.cpp b/src/android/android_StreamPlayer.cpp
index 7c400c8..5097dc2 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 {
@@ -162,7 +163,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 |