summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/MyHandler.h
diff options
context:
space:
mode:
authorLubin Yin <lubiny@codeaurora.org>2015-07-15 17:23:25 +0800
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:58 -0600
commitc678b9f0f3973c0f98e8e9bd431415cf5545da91 (patch)
tree2412b7ab9bab2afc8b029a95df7bfe81fb689bf0 /media/libstagefright/rtsp/MyHandler.h
parent4032a02ebd6b6161617b1cfd3c053df17b458642 (diff)
downloadframeworks_av-c678b9f0f3973c0f98e8e9bd431415cf5545da91.zip
frameworks_av-c678b9f0f3973c0f98e8e9bd431415cf5545da91.tar.gz
frameworks_av-c678b9f0f3973c0f98e8e9bd431415cf5545da91.tar.bz2
rtsp: do not drop early access units of seekable rtsp
Access units of seekable RTSP will be mapped to normal playtime in RTSPSource, so the negative media time can be adjusted and played normally. Change-Id: I12793dbbf367650e66532195324adb5b5ad8fe85 CRs-Fixed: 866580
Diffstat (limited to 'media/libstagefright/rtsp/MyHandler.h')
-rw-r--r--media/libstagefright/rtsp/MyHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/MyHandler.h b/media/libstagefright/rtsp/MyHandler.h
index 916a67c..3b74ffe 100644
--- a/media/libstagefright/rtsp/MyHandler.h
+++ b/media/libstagefright/rtsp/MyHandler.h
@@ -1903,7 +1903,7 @@ private:
mLastMediaTimeUs = mediaTimeUs;
}
- if (mediaTimeUs < 0) {
+ if (mediaTimeUs < 0 && !mSeekable) {
ALOGV("dropping early accessUnit.");
return false;
}