Bug 1371200. P4 - constify some members. draft
authorJW Wang <jwwang@mozilla.com>
Wed, 07 Jun 2017 14:26:36 +0800
changeset 590870 a1df839da233d93435ba31a8b9e5d7a81a6bced9
parent 590869 07770b7d660fe7d4f6ba5841bce4c486c9741768
child 590871 136552930984ac7bdc114bfad08fb82c8400ac89
push id62859
push userjwwang@mozilla.com
push dateThu, 08 Jun 2017 07:48:41 +0000
bugs1371200
milestone55.0a1
Bug 1371200. P4 - constify some members. MozReview-Commit-ID: B7rrXrTn7RD
dom/media/MediaDecoder.h
--- a/dom/media/MediaDecoder.h
+++ b/dom/media/MediaDecoder.h
@@ -685,23 +685,23 @@ protected:
   MediaChannelStatistics mPlaybackStatistics;
 
   // True when our media stream has been pinned. We pin the stream
   // while seeking.
   bool mPinnedForSeek;
 
   // Be assigned from media element during the initialization and pass to
   // AudioStream Class.
-  dom::AudioChannel mAudioChannel;
+  const dom::AudioChannel mAudioChannel;
 
   // True if the decoder has been directed to minimize its preroll before
   // playback starts. After the first time playback starts, we don't attempt
   // to minimize preroll, as we assume the user is likely to keep playing,
   // or play the media again.
-  bool mMinimizePreroll;
+  const bool mMinimizePreroll;
 
   // True if we've already fired metadataloaded.
   bool mFiredMetadataLoaded;
 
   // True if the media is seekable (i.e. supports random access).
   bool mMediaSeekable = true;
 
   // True if the media is only seekable within its buffered ranges