Bug 1252343. Part 1 - make mReader const. r=bechen. draft
authorJW Wang <jwwang@mozilla.com>
Tue, 01 Mar 2016 10:56:19 +0800
changeset 335648 5e1c270ef945157b9ef283db653ceea8d73c2e6d
parent 335646 0d2e847f9709ce95ee27b81c517c9bfc79956d78
child 335649 2181294411fe5427d11ce22de32b9c85c87e03f6
push id11845
push userjwwang@mozilla.com
push dateTue, 01 Mar 2016 02:59:29 +0000
Bug 1252343. Part 1 - make mReader const. r=bechen. MozReview-Commit-ID: IL0cCd5aUR1
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -898,17 +898,17 @@ private:
   // Media Fragment end time in microseconds. Access controlled by decoder monitor.
   int64_t mFragmentEndTime;
   // The media sink resource.  Used on the state machine thread.
   RefPtr<media::MediaSink> mMediaSink;
   // The reader, don't call its methods with the decoder monitor held.
   // This is created in the state machine's constructor.
-  RefPtr<MediaDecoderReader> mReader;
+  const RefPtr<MediaDecoderReader> mReader;
   // The end time of the last audio frame that's been pushed onto the media sink
   // in microseconds. This will approximately be the end time
   // of the audio stream, unless another frame is pushed to the hardware.
   int64_t AudioEndTime() const;
   // The end time of the last rendered video frame that's been sent to
   // compositor.