зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1138983 - RTSP not enabled in Lollipop. r=vchang
This commit is contained in:
Родитель
b433fb604d
Коммит
40b48175fc
|
@ -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])
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче