mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
4a04b72ebe
commit
d52eefdf94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user