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:
@@ -78,6 +78,9 @@
|
|||||||
}
|
}
|
||||||
return !destroyed
|
return !destroyed
|
||||||
} catch (err) {
|
} 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
|
if (destroyed) return false
|
||||||
error = err instanceof MediaError ? LOAD_FAILED : errorText(err)
|
error = err instanceof MediaError ? LOAD_FAILED : errorText(err)
|
||||||
loading = null // a later click tries again
|
loading = null // a later click tries again
|
||||||
|
|||||||
Reference in New Issue
Block a user