Bug 1293940 - fix uninitialized members. r=gerald

MozReview-Commit-ID: 8QRGKowJiYC

--HG--
extra : rebase_source : 0f38f004f22b1a5cf81b842c843c23fdec41e939
This commit is contained in:
JW Wang 2016-08-10 15:04:39 +08:00
parent 5b157f2095
commit 60c4b69563

View File

@ -277,16 +277,17 @@ protected:
};
struct BlockOwner {
BlockOwner() : mStream(nullptr), mClass(READAHEAD_BLOCK) {}
constexpr BlockOwner() {}
// The stream that owns this block, or null if the block is free.
MediaCacheStream* mStream;
MediaCacheStream* mStream = nullptr;
// The block index in the stream. Valid only if mStream is non-null.
uint32_t mStreamBlock;
// Initialized to an insane value to highlight misuse.
uint32_t mStreamBlock = UINT32_MAX;
// Time at which this block was last used. Valid only if
// mClass is METADATA_BLOCK or PLAYED_BLOCK.
TimeStamp mLastUseTime;
BlockClass mClass;
TimeStamp mLastUseTime;
BlockClass mClass = READAHEAD_BLOCK;
};
struct Block {