Skip to content

Unlisten to needKey signal on media source teardown

Vinay Rosenberg requested to merge github/fork/TheHedge/development into development

Created by: TheHedge

Javascript undefined error was occurring in onMediaSourceNeedsKey() with an uninitialized mediaInfos object. Reason was during a media tear down, the needsKey listener was not being removed and thus multiple needsKey signals were being generated.

This fix removes the stale listener when the media source is undergoing tear down processing.

Merge request reports