diff --git a/configure.in b/configure.in index f3b3365f6c6..88efe15533a 100644 --- a/configure.in +++ b/configure.in @@ -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]) diff --git a/netwerk/protocol/rtsp/rtsp/RTSPSource.cpp b/netwerk/protocol/rtsp/rtsp/RTSPSource.cpp index 26dbe3f1ed5..bfb3e8d5e35 100644 --- a/netwerk/protocol/rtsp/rtsp/RTSPSource.cpp +++ b/netwerk/protocol/rtsp/rtsp/RTSPSource.cpp @@ -508,7 +508,12 @@ void RTSPSource::onMessageReceived(const sp &msg) { TrackInfo *info = &mTracks.editItemAt(trackIndex); sp 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;