Bug 1396629 - P3. Make member const. r?cpearce draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Mon, 04 Sep 2017 22:43:50 +0200
changeset 658804 c0c044ff9171cec98cf2d0ab763ed0c2a53d0427
parent 658803 7fc7926dc4562a9dfb1d73e4cf6d84ca82c9b004
child 658805 757a9a403402184f545c1d0e889b49636c933a86
push id77874
push userbmo:jyavenard@mozilla.com
push dateMon, 04 Sep 2017 21:38:59 +0000
reviewerscpearce
bugs1396629
milestone57.0a1
Bug 1396629 - P3. Make member const. r?cpearce MozReview-Commit-ID: CwOh3BZj0vG
dom/media/mediasource/TrackBuffersManager.h
--- a/dom/media/mediasource/TrackBuffersManager.h
+++ b/dom/media/mediasource/TrackBuffersManager.h
@@ -206,17 +206,17 @@ private:
   RefPtr<MediaByteBuffer> mInputBuffer;
   // Buffer full flag as per https://w3c.github.io/media-source/#sourcebuffer-buffer-full-flag.
   // Accessed on both the main thread and the task queue.
   Atomic<bool> mBufferFull;
   bool mFirstInitializationSegmentReceived;
   // Set to true once a new segment is started.
   bool mNewMediaSegmentStarted;
   bool mActiveTrack;
-  MediaContainerType mType;
+  const MediaContainerType mType;
 
   // ContainerParser objects and methods.
   // Those are used to parse the incoming input buffer.
 
   // Recreate the ContainerParser and if aReuseInitData is true then
   // feed it with the previous init segment found.
   void RecreateParser(bool aReuseInitData);
   nsAutoPtr<ContainerParser> mParser;