Hi, First of all @ Benny & team: great job, I do like your libraries, their design and their features. Thanks for sharing it and your marvelous support. Here may be a bug: In method fill_buffer() inside 'wav_player.c' of pjmedia there is the following comment: /* This will crash if file port is destroyed in the * callback, that's why we set the eof flag before * calling the callback: fport->eof = PJ_TRUE; */ But right after that, fport is used again (lots of fport->...). Inside my application's EOF callback method [set up via: pjsua_player_create(), pjsua_player_get_port(), and pjmedia_wav_player_set_eof_cb()], pjsua_player_destroy() is called, eventually. pjsua_player_destroy() seems to make some or all content of fport invalid which results in a program crash (illegal memory access) when returning. I don't see any other place than inside the cb method to call pjsua_player_destroy(). Is this correct? Cheers, Bernie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20070917/ba547bcc/attachment.html