Bug 860149 - Mark ourselves as doing synchronous decoding when writing directly to decoders in AddSourceData. r=seth

--HG--
extra : rebase_source : 1d48d2ba8bc880bb9a52fd1f9f6a95849f12992a
This commit is contained in:
Joe Drew 2013-04-17 20:05:49 -04:00
parent 4a04b72ebe
commit d52eefdf94

View File

@ -1669,7 +1669,9 @@ RasterImage::AddSourceData(const char *aBuffer, uint32_t aCount)
// write the data directly to the decoder. (If we haven't gotten the size,
// we'll queue up the data and write it out when we do.)
if (!StoringSourceData() && mHasSize) {
mDecoder->SetSynchronous(true);
rv = WriteToDecoder(aBuffer, aCount);
mDecoder->SetSynchronous(false);
CONTAINER_ENSURE_SUCCESS(rv);
// We're not storing source data, so this data is probably coming straight