From 003050568829aa7b3c13c1fbcb24abcfd17cad80 Mon Sep 17 00:00:00 2001 From: ywan171 Date: Thu, 26 Jul 2012 06:12:59 +0800 Subject: 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 Signed-off-by: Yi Wang Signed-off-by: Shuo Gao Signed-off-by: Bruce Beare Signed-off-by: Jack Ren Author-tracking-BZ: 48555 --- media/libstagefright/httplive/M3UParser.cpp | 3 --- 1 file changed, 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') { -- cgit v1.2.3