Bug 1138983 - RTSP not enabled in Lollipop. r=vchang

This commit is contained in:
Ethan Tseng 2015-03-05 13:34:08 +08:00
parent 9c2341f79e
commit 1fe11edb22
2 changed files with 6 additions and 0 deletions

View File

@ -303,6 +303,7 @@ if test -n "$gonkdir" ; then
MOZ_B2G_BT_DAEMON=1
fi
MOZ_NFC=1
MOZ_RTSP=1
;;
*)
AC_MSG_ERROR([Unsupported platform version: $ANDROID_VERSION])

View File

@ -508,7 +508,12 @@ void RTSPSource::onMessageReceived(const sp<AMessage> &msg) {
TrackInfo *info = &mTracks.editItemAt(trackIndex);
sp<AnotherPacketSource> source = info->mSource;
if (source != NULL) {
#if ANDROID_VERSION >= 21
source->queueDiscontinuity(ATSParser::DISCONTINUITY_SEEK, NULL,
true /* discard */);
#else
source->queueDiscontinuity(ATSParser::DISCONTINUITY_SEEK, NULL);
#endif
}
break;