diff options
author | ywan171 <yi.a.wang@intel.com> | 2012-07-26 06:12:59 +0800 |
---|---|---|
committer | Shuo Gao <shuo.gao@intel.com> | 2012-08-24 14:32:31 +0800 |
commit | 003050568829aa7b3c13c1fbcb24abcfd17cad80 (patch) | |
tree | c90cde525b63a2bbb3d29f344b93dd58302ab1f9 | |
parent | 4b60ac04a878eaf8344b56189509ccd6925855c2 (diff) |
libstagefright: fix the duration "00:00" for some httplive link
if the playlist does not end by '\n', player can not show
the correction duration
Change-Id: I6dd9abfce32a1ef7b7d6ed157c966fce3c190389
Author: Yi Wang <yi.a.wang@intel.com>
Signed-off-by: Yi Wang <yi.a.wang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48555
-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 7d3cf054..71c63812 100644 --- a/media/libstagefright/httplive/M3UParser.cpp +++ b/media/libstagefright/httplive/M3UParser.cpp @@ -158,9 +158,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') { |