Skip to content

Video never recovers after a MediaCodec error #21

Closed

Description

@compot-dev

When MediaCodecManager.decodeFrame() catches a codec exception, it sets decoderFailed = true. After that, needCreate is always false and the decoder is not recreated until the user switches camera or leaves the app. RTP keeps flowing, so the watchdog does not reconnect either. The result is a frozen or black picture. Quad cells behave the same way.

Fix: retry decoder creation after a back-off, wait for the next SPS/IDR, and/or trigger a reconnect.

Activity

  1. added
    bugSomething isn't working
    in progressBeing worked on right now (open PR)
    on Oct 12, 2026
  2. added a commit that references this issue on Oct 12, 2026
  3. added 2 commits that reference this issue on Oct 15, 2026
    d3909a9
    b6d2e1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions