diff options
author | Wei Jia <wjia@google.com> | 2014-12-15 19:31:45 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-15 19:31:45 +0000 |
commit | dc039672b8fad7746200ecc36304d0e85db4f367 (patch) | |
tree | 372501991e4a48766a53dbd7b87fca2f7c2d1d20 /media/libstagefright/httplive | |
parent | 690257fe8288bc6f84069cc4b5d7f2a76e850401 (diff) | |
parent | a0b3a0a46dc42eafe620ffd053604515bbd9ca9a (diff) | |
download | frameworks_av-dc039672b8fad7746200ecc36304d0e85db4f367.zip frameworks_av-dc039672b8fad7746200ecc36304d0e85db4f367.tar.gz frameworks_av-dc039672b8fad7746200ecc36304d0e85db4f367.tar.bz2 |
am a0b3a0a4: am 6e430fbd: Merge "NuPlayer: send NOT_SEEKABLE media info to client when the source is not seekable." into lmp-mr1-dev
* commit 'a0b3a0a46dc42eafe620ffd053604515bbd9ca9a':
NuPlayer: send NOT_SEEKABLE media info to client when the source is not seekable.
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r-- | media/libstagefright/httplive/LiveSession.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp index 6522ad7..04005bd 100644 --- a/media/libstagefright/httplive/LiveSession.cpp +++ b/media/libstagefright/httplive/LiveSession.cpp @@ -1110,11 +1110,11 @@ status_t LiveSession::onSeek(const sp<AMessage> &msg) { } status_t LiveSession::getDuration(int64_t *durationUs) const { - int64_t maxDurationUs = 0ll; + int64_t maxDurationUs = -1ll; for (size_t i = 0; i < mFetcherInfos.size(); ++i) { int64_t fetcherDurationUs = mFetcherInfos.valueAt(i).mDurationUs; - if (fetcherDurationUs >= 0ll && fetcherDurationUs > maxDurationUs) { + if (fetcherDurationUs > maxDurationUs) { maxDurationUs = fetcherDurationUs; } } |