From 64d65e096bd762bfa54c362a83edd8dcd5ba2e53 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 21 Jan 2019 13:58:20 +0100 Subject: Make resuming of decoding work for anonymous decoders. --- image/ImageOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image/ImageOps.cpp') diff --git a/image/ImageOps.cpp b/image/ImageOps.cpp index addee7f155..ddd2f200e5 100644 --- a/image/ImageOps.cpp +++ b/image/ImageOps.cpp @@ -126,7 +126,7 @@ ImageOps::DecodeToSurface(nsIInputStream* aInputStream, } // Run the decoder synchronously. - RefPtr task = new AnonymousDecodingTask(WrapNotNull(decoder)); + RefPtr task = new AnonymousDecodingTask(WrapNotNull(decoder), /* aResumable */ false); task->Run(); if (!decoder->GetDecodeDone() || decoder->HasError()) { return nullptr; -- cgit v1.2.3