diff options
author | Andreas Huber <andih@google.com> | 2012-11-27 08:50:52 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-11-27 08:51:08 -0800 |
commit | 5768fa034ede834656697d3612c525595ff85ef9 (patch) | |
tree | 177b168a38da0d53a9d2648c6a69efed8c3b784b | |
parent | 3eb46d179b1f62cde21077fde466925d4c5c79ad (diff) | |
parent | 738198a16cfd7b125d15b0bab0708ba7fbf7e64a (diff) | |
download | frameworks_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.h | 4 |
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) { |