Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. r=gerald
authorJW Wang <jwwang@mozilla.com>
Wed, 25 Oct 2017 10:29:16 +0800
changeset 686178 1b9b85bd44aa1b6c4caeb35d52b654a82f6fef61
parent 686177 b3d0e7e94d930c2cf636e490ab0a0a8b5f29f567
child 686179 b197f21686c7699742193cd29ee43f5a0222c950
push id86115
push userbmo:emilio@crisal.io
push dateWed, 25 Oct 2017 14:47:42 +0000
reviewersgerald
bugs1411476
milestone58.0a1
Bug 1411476. P1 - add a space before mAudioCompleted and run clang-format. r=gerald 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;