diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-24 14:47:15 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-25 14:55:25 -0800 |
commit | b3f9759c8c9437c45b9a34519ce2ea38a8314d4e (patch) | |
tree | 05982b486e08637901d5ac4890aa2be659239064 /media/libstagefright/httplive/LiveSession.cpp | |
parent | e4f6ecb9d323984c2b86f6d2735ebc69c5a3517a (diff) | |
download | frameworks_av-b3f9759c8c9437c45b9a34519ce2ea38a8314d4e.zip frameworks_av-b3f9759c8c9437c45b9a34519ce2ea38a8314d4e.tar.gz frameworks_av-b3f9759c8c9437c45b9a34519ce2ea38a8314d4e.tar.bz2 |
Stagefright: Fix unused variables, functions, values
For build-system CFLAGS clean-up, remove unused functions and
variables.
Change-Id: Ic3dee56b589ea9a693efa1d72ba394036efff168
Diffstat (limited to 'media/libstagefright/httplive/LiveSession.cpp')
-rw-r--r-- | media/libstagefright/httplive/LiveSession.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp index fba6b09..a934e72 100644 --- a/media/libstagefright/httplive/LiveSession.cpp +++ b/media/libstagefright/httplive/LiveSession.cpp @@ -685,7 +685,6 @@ void LiveSession::onConnect(const sp<AMessage> &msg) { AString uri; mPlaylist->itemAt(i, &uri, &meta); - unsigned long bandwidth; CHECK(meta->findInt32("bandwidth", (int32_t *)&item.mBandwidth)); if (initialBandwidth == 0) { @@ -962,9 +961,11 @@ sp<M3UParser> LiveSession::fetchPlaylist( return playlist; } +#if 0 static double uniformRand() { return (double)rand() / RAND_MAX; } +#endif size_t LiveSession::getBandwidthIndex() { if (mBandwidthItems.size() == 0) { @@ -1433,7 +1434,6 @@ void LiveSession::onChangeConfiguration3(const sp<AMessage> &msg) { sp<PlaylistFetcher> fetcher = addFetcher(uri.c_str()); CHECK(fetcher != NULL); - int32_t latestSeq = -1; int64_t startTimeUs = -1; int64_t segmentStartTimeUs = -1ll; int32_t discontinuitySeq = -1; @@ -1461,7 +1461,6 @@ void LiveSession::onChangeConfiguration3(const sp<AMessage> &msg) { ATSParser::DISCONTINUITY_SEEK, extra, true); } else { int32_t type; - int64_t srcSegmentStartTimeUs; sp<AMessage> meta; if (pickTrack) { // selecting |