Closed Bug 2085643 Opened 14 days ago Closed 13 days ago

FFmpegVideoDecoder leaks reference to ANativeWindow

Categories

(Core :: Audio/Video: Playback, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 4 open bugs)

Details

Attachments

(1 external file)

FFmpeg only releases AVMediaCodecDeviceContext::native_window if it created
the window itself, which it never does for us because we always provide one.
Release our reference from the device context's free callback, which runs once
the last reference to the context is dropped, including on init failure.

Pushed by aosmond@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/079338aef0f4 https://hg.mozilla.org/integration/autoland/rev/e739a0d07fd4 Release the ANativeWindow reference given to the MediaCodec device context. r=media-playback-reviewers,padenot
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
Blocks: 1649110
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: