summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/libstagefright/mpeg2ts/AnotherPacketSource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/mpeg2ts/AnotherPacketSource.cpp b/media/libstagefright/mpeg2ts/AnotherPacketSource.cpp
index ed40bdd..c579d4c 100644
--- a/media/libstagefright/mpeg2ts/AnotherPacketSource.cpp
+++ b/media/libstagefright/mpeg2ts/AnotherPacketSource.cpp
@@ -262,15 +262,15 @@ void AnotherPacketSource::queueDiscontinuity(
}
}
+ mEOSResult = OK;
+ mLastQueuedTimeUs = 0;
+ mLatestEnqueuedMeta = NULL;
+
if (type == ATSParser::DISCONTINUITY_NONE) {
return;
}
- mEOSResult = OK;
- mLastQueuedTimeUs = 0;
- mLatestEnqueuedMeta = NULL;
++mQueuedDiscontinuityCount;
-
sp<ABuffer> buffer = new ABuffer(0);
buffer->meta()->setInt32("discontinuity", static_cast<int32_t>(type));
buffer->meta()->setMessage("extra", extra);