summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSungsoo Lim <sungsoo@google.com>2012-12-31 17:48:20 +0900
committerAndreas Huber <andih@google.com>2013-04-16 09:23:28 -0700
commit1e0757e0a63d876acc65991ac73284227c522bdc (patch)
tree6e22703c4a265905c51121364e5e7e7c94a31a49
parent5ce9c299a64a1568165fc66adb2cf68d89198a90 (diff)
downloadframeworks_av-1e0757e0a63d876acc65991ac73284227c522bdc.zip
frameworks_av-1e0757e0a63d876acc65991ac73284227c522bdc.tar.gz
frameworks_av-1e0757e0a63d876acc65991ac73284227c522bdc.tar.bz2
Parse the last none-empty line of .m3u8 file
If the last sentence of .m3u8 file is not processed, because it is not empty and has no line feed, M3UParser.isComplete() returns false even though it is completed. Change-Id: I01b9f900d44247a3ef40369a2f9198bb7eaf01b7 related-to-bug: 8405824
-rw-r--r--media/libstagefright/httplive/M3UParser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/media/libstagefright/httplive/M3UParser.cpp b/media/libstagefright/httplive/M3UParser.cpp
index 44e03dc..68bbca2 100644
--- a/media/libstagefright/httplive/M3UParser.cpp
+++ b/media/libstagefright/httplive/M3UParser.cpp
@@ -163,9 +163,6 @@ status_t M3UParser::parse(const void *_data, size_t size) {
while (offsetLF < size && data[offsetLF] != '\n') {
++offsetLF;
}
- if (offsetLF >= size) {
- break;
- }
AString line;
if (offsetLF > offset && data[offsetLF - 1] == '\r') {