fixup! wip

This commit is contained in:
lebaudantoine
2026-09-02 20:36:33 +02:00
parent 09a0238936
commit c783fefa57
@@ -392,7 +392,6 @@ export class BackgroundCustomProcessor implements BackgroundProcessorInterface {
} }
try { try {
this._syncOutputCanvasSize() this._syncOutputCanvasSize()
// No decoded frame available (e.g. right after a device switch): skip // No decoded frame available (e.g. right after a device switch): skip
// this tick rather than processing a 0x0 source. // this tick rather than processing a 0x0 source.
if ( if (
@@ -429,8 +428,6 @@ export class BackgroundCustomProcessor implements BackgroundProcessorInterface {
} }
this.consecutiveErrors += 1 this.consecutiveErrors += 1
if (this.consecutiveErrors >= MAX_CONSECUTIVE_ERRORS) { if (this.consecutiveErrors >= MAX_CONSECUTIVE_ERRORS) {
// Degrade to passthrough: a working camera without the effect is
// better than a permanently frozen frame.
this.passthrough = true this.passthrough = true
reportError('effects_processor_failure', error, { reportError('effects_processor_failure', error, {
context: context: