Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. draft
authorJW Wang <jwwang@mozilla.com>
Wed, 25 Oct 2017 10:29:16 +0800
changeset 685968 b870852eda6f0558474054e32fbd5d75fba07039
parent 685608 a124f4901430f6db74cfc7fe3b07957a1c691b40
child 685969 6b5d2a91d03f1179896f3d16408e73e48c584ec7
push id86052
push userjwwang@mozilla.com
push dateWed, 25 Oct 2017 07:20:26 +0000
bugs1411476
milestone58.0a1
Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. MozReview-Commit-ID: DF2BIO97aeB
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -3694,27 +3694,33 @@ nsCString
 MediaDecoderStateMachine::GetDebugInfo()
 {
   MOZ_ASSERT(OnTaskQueue());
   return nsPrintfCString(
            "MediaDecoderStateMachine State: GetMediaTime=%" PRId64 " GetClock="
            "%" PRId64 " mMediaSink=%p state=%s mPlayState=%d "
            "mSentFirstFrameLoadedEvent=%d IsPlaying=%d mAudioStatus=%s "
            "mVideoStatus=%s mDecodedAudioEndTime=%" PRId64
-           " mDecodedVideoEndTime=%" PRId64 "mAudioCompleted=%d "
+           " mDecodedVideoEndTime=%" PRId64 " mAudioCompleted=%d "
            "mVideoCompleted=%d",
            GetMediaTime().ToMicroseconds(),
            mMediaSink->IsStarted() ? GetClock().ToMicroseconds() : -1,
-           mMediaSink.get(), ToStateStr(), mPlayState.Ref(),
-           mSentFirstFrameLoadedEvent, IsPlaying(), AudioRequestStatus(),
-           VideoRequestStatus(), mDecodedAudioEndTime.ToMicroseconds(),
+           mMediaSink.get(),
+           ToStateStr(),
+           mPlayState.Ref(),
+           mSentFirstFrameLoadedEvent,
+           IsPlaying(),
+           AudioRequestStatus(),
+           VideoRequestStatus(),
+           mDecodedAudioEndTime.ToMicroseconds(),
            mDecodedVideoEndTime.ToMicroseconds(),
-           mAudioCompleted, mVideoCompleted)
-         + mStateObj->GetDebugInfo() + nsCString("\n")
-         + mMediaSink->GetDebugInfo();
+           mAudioCompleted,
+           mVideoCompleted) +
+         mStateObj->GetDebugInfo() + nsCString("\n") +
+         mMediaSink->GetDebugInfo();
 }
 
 RefPtr<MediaDecoder::DebugInfoPromise>
 MediaDecoderStateMachine::RequestDebugInfo()
 {
   using PromiseType = MediaDecoder::DebugInfoPromise;
   RefPtr<PromiseType::Private> p = new PromiseType::Private(__func__);
   RefPtr<MediaDecoderStateMachine> self = this;