From fc6b49dc388d0de4bda6556023c8c29707e87a23 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Tue, 30 Oct 2018 09:51:35 +0000 Subject: [PATCH] Bug 1503132 initialize mEndTime to zero for offline graphs r=padenot This will prevent rendering from starting when the graph thread is started before StartNonRealtimeProcessing() is called. Depends on D10167 Differential Revision: https://phabricator.services.mozilla.com/D10168 --HG-- extra : moz-landing-system : lando --- dom/media/MediaStreamGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp index a18f7371f38c..c69351126005 100644 --- a/dom/media/MediaStreamGraph.cpp +++ b/dom/media/MediaStreamGraph.cpp @@ -3680,7 +3680,8 @@ MediaStreamGraphImpl::MediaStreamGraphImpl(GraphDriverType aDriverRequested, , mGraphDriverAsleep(false) , mMonitor("MediaStreamGraphImpl") , mLifecycleState(LIFECYCLE_THREAD_NOT_STARTED) - , mEndTime(GRAPH_TIME_MAX) + // An offline graph is not initially processing. + , mEndTime(aDriverRequested == OFFLINE_THREAD_DRIVER ? 0 : GRAPH_TIME_MAX) , mForceShutDown(false) , mPostedRunInStableStateEvent(false) , mDetectedNotRunning(false)