commit | 3e3af91f70b20623fa5f3845f26260235c0b212d | [log] [tgz] |
---|---|---|
author | Yajun Zeng <beanz@marvell.com> | Tue May 14 10:00:10 2013 +0800 |
committer | Yajun Zeng <beanz@marvell.com> | Wed Jul 31 11:31:46 2013 +0800 |
tree | dba78b1a839d35dd2f32c4a8710f8e2bfeb4fe39 | |
parent | 1bb59258458350af518170558120783bc2f9e61d [diff] |
rtsp handle response line ended with '\n' Change-Id: I5bfafd3fa2c95083e833da2846556282eada2b02 Signed-off-by: Yajun Zeng <beanz@marvell.com>
diff --git a/media/libstagefright/rtsp/ARTSPConnection.cpp b/media/libstagefright/rtsp/ARTSPConnection.cpp index 3068541..8b209c4 100644 --- a/media/libstagefright/rtsp/ARTSPConnection.cpp +++ b/media/libstagefright/rtsp/ARTSPConnection.cpp
@@ -565,6 +565,9 @@ if (sawCR && c == '\n') { line->erase(line->size() - 1, 1); return true; + } else if (c == '\n') { + // some reponse line ended with '\n', instead of '\r\n'. + return true; } line->append(&c, 1);