summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/ARTSPConnection.cpp
diff options
context:
space:
mode:
authorYajun Zeng <beanz@marvell.com>2013-05-14 10:00:10 +0800
committerYajun Zeng <beanz@marvell.com>2013-07-31 11:31:46 +0800
commit3e3af91f70b20623fa5f3845f26260235c0b212d (patch)
treedba78b1a839d35dd2f32c4a8710f8e2bfeb4fe39 /media/libstagefright/rtsp/ARTSPConnection.cpp
parent1bb59258458350af518170558120783bc2f9e61d (diff)
downloadframeworks_av-3e3af91f70b20623fa5f3845f26260235c0b212d.zip
frameworks_av-3e3af91f70b20623fa5f3845f26260235c0b212d.tar.gz
frameworks_av-3e3af91f70b20623fa5f3845f26260235c0b212d.tar.bz2
rtsp handle response line ended with '\n'
Change-Id: I5bfafd3fa2c95083e833da2846556282eada2b02 Signed-off-by: Yajun Zeng <beanz@marvell.com>
Diffstat (limited to 'media/libstagefright/rtsp/ARTSPConnection.cpp')
-rw-r--r--media/libstagefright/rtsp/ARTSPConnection.cpp3
1 files changed, 3 insertions, 0 deletions
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 @@ bool ARTSPConnection::receiveLine(AString *line) {
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);