[mq]: 1237806_test_BufferingWait_mp4_debug.patch
authorJW Wang <jwwang@mozilla.com>
Mon, 11 Jan 2016 08:41:30 +0800
changeset 670339 02b78f59ac821f7bf511f6b1dc6fbc997109ad64
parent 670338 bcfa8145cff388644453df36b8891c40cff8d3c0
child 670340 20d1fde106388f694a778137a1b810bd638f33d3
push id103793
push userjwwang@mozilla.com
push dateMon, 11 Jan 2016 00:41:59 +0000
treeherdertry@20d1fde10638 [default view] [failures only]
milestone46.0a1
[mq]: 1237806_test_BufferingWait_mp4_debug.patch
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2486,17 +2486,17 @@ MediaDecoderStateMachine::UpdatePlayback
       UpdatePlaybackPosition(t);
     }
   }
   // Note we have to update playback position before releasing the monitor.
   // Otherwise, MediaDecoder::AddOutputStream could kick in when we are outside
   // the monitor and get a staled value from GetCurrentTimeUs() which hits the
   // assertion in GetClock().
 
-  int64_t delay = std::max<int64_t>(1, AUDIO_DURATION_USECS / mPlaybackRate);
+  int64_t delay = std::max<int64_t>(1, 200000 / mPlaybackRate);
   ScheduleStateMachineIn(delay);
 }
 
 nsresult
 MediaDecoderStateMachine::DropVideoUpToSeekTarget(MediaData* aSample)
 {
   MOZ_ASSERT(OnTaskQueue());
   RefPtr<VideoData> video(aSample->As<VideoData>());