Opened 4 years ago

Closed 4 years ago

#2239 closed defect (fixed)

Avoid crash in rendering after Android OpenGL reinit failure

Reported by: nanang Owned by: nanang
Priority: normal Milestone: release-2.10
Component: pjmedia-videodev Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no


Reported that crash occurred after failure in OpenGL re-initialization due to format change (after the first incoming video frame was successfully decoded).

Thanks Sai Krishna for the report.

Change History (1)

comment:1 Changed 4 years ago by nanang

  • Owner set to nanang
  • Resolution set to fixed
  • Status changed from new to closed

In 6085:

Fixed #2239:

  • Deinit OpenGL immediately when initialization fails, so video device start() and put_frame() will return immediately.
  • Introduced new media event PJMEDIA_EVENT_VID_DEV_ERROR, used for notifying app when video device reinit (due to format change) fails.
Note: See TracTickets for help on using tickets.