Possible race conditions when destroying wav_player port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've received reports of the following assertion failure:
../src/pjmedia/wav_player.c:554:
file_get_frame: Assertion `fport->fmt_tag == PJMEDIA_WAVE_FMT_TAG_ULAW
|| fport->fmt_tag == PJMEDIA_WAVE_FMT_TAG_ALAW'
failed

file_get_frame seems to be called within the context of the soundcard  
thread (which makes sense). What I think is happening is that I'm  
calling pjmedia_port_destroy() on the port and  
pjsip_endpt_release_pool() on the pool  containing it while the  
soundcard thread is in this function.

My questions are:
1) Is this possible?
2) If so, what can I do to prevent this?

Ruud Klaver
AG Projects



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux