From c678b9f0f3973c0f98e8e9bd431415cf5545da91 Mon Sep 17 00:00:00 2001 From: Lubin Yin Date: Wed, 15 Jul 2015 17:23:25 +0800 Subject: 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 --- media/libstagefright/rtsp/MyHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/libstagefright/rtsp/MyHandler.h') 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; } -- cgit v1.1