summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-11-29 08:51:21 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-11-29 08:51:21 -0800
commit251c04b1f3d048f541832c93347c6604b314e0ea (patch)
treeba760e7d1d2eab997859b8dd371b011fae97e2d8
parent5768fa034ede834656697d3612c525595ff85ef9 (diff)
parent8b96e5df9f085e285d23beb96fd41c3d4b8005a3 (diff)
Merge "Unsolicited server responses cause RTSP streaming to crash"
-rw-r--r--media/libstagefright/rtsp/ARTSPConnection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/ARTSPConnection.cpp b/media/libstagefright/rtsp/ARTSPConnection.cpp
index 539a8882..161bd4fb 100644
--- a/media/libstagefright/rtsp/ARTSPConnection.cpp
+++ b/media/libstagefright/rtsp/ARTSPConnection.cpp
@@ -830,6 +830,7 @@ status_t ARTSPConnection::findPendingRequest(
if (i < 0) {
// This is an unsolicited server->client message.
+ *index = -1;
return OK;
}