зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1345376 - Label runnables in dom/media/mediasink/DecodedStream.cpp. r=kikuo,pehrsons
MozReview-Commit-ID: 9SrS2g2mY2p --HG-- extra : rebase_source : 053ee96dfcc80cd1bd81237ec76cd256a52ebcfe extra : intermediate-source : 31b7a73f0b45916dbcf3b66faec746ec04acca45 extra : source : 42b918b4f24737ef456c9ffe7df4b7d4bd4ecb0c
This commit is contained in:
Родитель
37496c6b4a
Коммит
1f7faa8e4f
|
@ -309,7 +309,10 @@ DecodedStream::Start(int64_t aStartTime, const MediaInfo& aInfo)
|
|||
public:
|
||||
R(PlaybackInfoInit&& aInit, Promise&& aPromise,
|
||||
OutputStreamManager* aManager, AbstractThread* aMainThread)
|
||||
: mInit(Move(aInit)), mOutputStreamManager(aManager), mAbstractMainThread(aMainThread)
|
||||
: Runnable("CreateDecodedStreamData")
|
||||
, mInit(Move(aInit))
|
||||
, mOutputStreamManager(aManager)
|
||||
, mAbstractMainThread(aMainThread)
|
||||
{
|
||||
mPromise = Move(aPromise);
|
||||
}
|
||||
|
@ -346,8 +349,8 @@ DecodedStream::Start(int64_t aStartTime, const MediaInfo& aInfo)
|
|||
};
|
||||
nsCOMPtr<nsIRunnable> r =
|
||||
new R(Move(init), Move(promise), mOutputStreamManager, mAbstractMainThread);
|
||||
nsCOMPtr<nsIThread> mainThread = do_GetMainThread();
|
||||
SyncRunnable::DispatchToThread(mainThread, r);
|
||||
SyncRunnable::DispatchToThread(
|
||||
SystemGroup::EventTargetFor(mozilla::TaskCategory::Other), r);
|
||||
mData = static_cast<R*>(r.get())->ReleaseData();
|
||||
|
||||
if (mData) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче