Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#526 closed defect (fixed)

Pjsua crash after wav player destroyed inside the eof callback (thanks Tanguy Floc'h)

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

Description

http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-April/002513.html
after destroyed, wav player port get_frame() returns PJ_SUCCESS to conference, so the conference continue accessing the wav player port.

Attachments (2)

ticket526.patch (4.8 KB) - added by nanang 16 years ago.
ticket526.2.patch (1.1 KB) - added by nanang 16 years ago.
Fixed buggy patch 'ticket526.patch': posibility of accessing port after wav player port destroyed

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by nanang

comment:1 Changed 16 years ago by nanang

In ticket526.patch contains major changes on wav player:

  • On EOF, fill_buffer() NO_LOOP will pad the buffer with zero, for LOOP mode it will rewind the file and fill the end of buffer with the the beginning of file (smooth rewinding).
  • Added new field eofpos to mark the end of file position in the buffer, this field only set when eof is set, otherwise it must be NULL.
  • EOF callback is not called before/at the EOF frame anymore, it is called in the first next get_frame() after the EOF frame returned.

comment:2 Changed 16 years ago by bennylp

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

Committed ticket526.patch in r1927

Changed 16 years ago by nanang

Fixed buggy patch 'ticket526.patch': posibility of accessing port after wav player port destroyed

comment:3 Changed 16 years ago by bennylp

Committed ticket526.2.patch in r1934

Note: See TracTickets for help on using tickets.