diff options
author | Robert Shih <robertshih@google.com> | 2014-11-06 13:58:48 -0800 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2014-11-08 01:40:50 +0000 |
commit | 1098d87e56f726184ae9c8fe903ea4743669f35b (patch) | |
tree | c2dabde1d5669bef93e8854e1c0e9ba26703bc6c | |
parent | ed1e55c5276a1c031e9b2f016387c7d2fe7bc47f (diff) | |
download | frameworks_av-1098d87e56f726184ae9c8fe903ea4743669f35b.zip frameworks_av-1098d87e56f726184ae9c8fe903ea4743669f35b.tar.gz frameworks_av-1098d87e56f726184ae9c8fe903ea4743669f35b.tar.bz2 |
HTTPLiveSource: NULL check in getFormat
Bug: 18297916
Change-Id: I14c5de8d28202ee1b68e369d33e01bd26dbe968d
-rw-r--r-- | media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp index a003c81..02e9caf 100644 --- a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp +++ b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp @@ -98,6 +98,10 @@ void NuPlayer::HTTPLiveSource::start() { } sp<AMessage> NuPlayer::HTTPLiveSource::getFormat(bool audio) { + if (mLiveSession == NULL) { + return NULL; + } + sp<AMessage> format; status_t err = mLiveSession->getStreamFormat( audio ? LiveSession::STREAMTYPE_AUDIO |