fix #14740: revoke the playback blob on a failed retry

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-10 14:10:36 +01:00
co-authored by Claude Opus 5.5
parent 5751684ef8
commit 9ded4f14d4
+3
View File
@@ -78,6 +78,9 @@
}
return !destroyed
} catch (err) {
// A retry creates a new blob: this one is of no use any more.
if (blobUrl) URL.revokeObjectURL(blobUrl)
blobUrl = null
if (destroyed) return false
error = err instanceof MediaError ? LOAD_FAILED : errorText(err)
loading = null // a later click tries again