summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-11-27 08:50:52 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-11-27 08:51:08 -0800
commit5768fa034ede834656697d3612c525595ff85ef9 (patch)
tree177b168a38da0d53a9d2648c6a69efed8c3b784b
parent3eb46d179b1f62cde21077fde466925d4c5c79ad (diff)
parent738198a16cfd7b125d15b0bab0708ba7fbf7e64a (diff)
downloadframeworks_av-5768fa034ede834656697d3612c525595ff85ef9.zip
frameworks_av-5768fa034ede834656697d3612c525595ff85ef9.tar.gz
frameworks_av-5768fa034ede834656697d3612c525595ff85ef9.tar.bz2
Merge "Crash in android::MyHandler::parsePlayResponse"
-rw-r--r--media/libstagefright/rtsp/MyHandler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/MyHandler.h b/media/libstagefright/rtsp/MyHandler.h
index deee30f..96c7683 100644
--- a/media/libstagefright/rtsp/MyHandler.h
+++ b/media/libstagefright/rtsp/MyHandler.h
@@ -1091,6 +1091,10 @@ struct MyHandler : public AHandler {
void parsePlayResponse(const sp<ARTSPResponse> &response) {
mSeekable = false;
+ if (mTracks.size() == 0) {
+ ALOGV("parsePlayResponse: late packets ignored.");
+ return;
+ }
ssize_t i = response->mHeaders.indexOfKey("range");
if (i < 0) {