mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
Issue #1382 - Fix invalid assert for decoder type if JXL is not built on debug builds
This commit is contained in:
parent
743d1f66d2
commit
06d2df29b4
1 changed files with 8 additions and 4 deletions
|
|
@ -202,12 +202,16 @@ DecoderFactory::CreateAnimationDecoder(DecoderType aType,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_ASSERT(aType == DecoderType::GIF || aType == DecoderType::PNG ||
|
bool validDecoderType = (
|
||||||
aType == DecoderType::WEBP
|
aType == DecoderType::GIF ||
|
||||||
|
aType == DecoderType::PNG ||
|
||||||
|
aType == DecoderType::WEBP);
|
||||||
#ifdef MOZ_JXL
|
#ifdef MOZ_JXL
|
||||||
|| aType == DecoderType::JXL
|
validDecoderType = validDecoderType || aType == DecoderType::JXL;
|
||||||
#endif
|
#endif
|
||||||
, "Calling CreateAnimationDecoder for non-animating DecoderType");
|
|
||||||
|
MOZ_ASSERT(validDecoderType,
|
||||||
|
"Calling CreateAnimationDecoder for non-animating DecoderType");
|
||||||
|
|
||||||
// Create an anonymous decoder. Interaction with the SurfaceCache and the
|
// Create an anonymous decoder. Interaction with the SurfaceCache and the
|
||||||
// owning RasterImage will be mediated by AnimationSurfaceProvider.
|
// owning RasterImage will be mediated by AnimationSurfaceProvider.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue