diff options
author | Sungsoo Lim <sungsoo@google.com> | 2012-12-31 17:48:20 +0900 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-04-16 09:23:28 -0700 |
commit | be2bda4abed36eb6adf474c317d1492b4aec8f1a (patch) | |
tree | bcbce809e997549d83c391c58c97f7d73cf0c56d | |
parent | 474c6539e3592aece37616d0b39ef008b61260a0 (diff) | |
download | frameworks_av-be2bda4abed36eb6adf474c317d1492b4aec8f1a.zip frameworks_av-be2bda4abed36eb6adf474c317d1492b4aec8f1a.tar.gz frameworks_av-be2bda4abed36eb6adf474c317d1492b4aec8f1a.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.cpp | 3 |
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') { |