From 1e0757e0a63d876acc65991ac73284227c522bdc Mon Sep 17 00:00:00 2001 From: Sungsoo Lim Date: Mon, 31 Dec 2012 17:48:20 +0900 Subject: 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 --- media/libstagefright/httplive/M3UParser.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'media/libstagefright/httplive') 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') { -- cgit v1.1