From: <sb...@us...> - 2008-05-19 15:00:30
|
Revision: 1431 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1431&view=rev Author: sbalea Date: 2008-05-19 08:00:26 -0700 (Mon, 19 May 2008) Log Message: ----------- Instrument code in service_audio() in an attempt to spot an elusive crash Modified Paths: -------------- branches/team/elbunce/iaxclient/lib/iaxclient_lib.c Modified: branches/team/elbunce/iaxclient/lib/iaxclient_lib.c =================================================================== --- branches/team/elbunce/iaxclient/lib/iaxclient_lib.c 2008-05-08 14:10:11 UTC (rev 1430) +++ branches/team/elbunce/iaxclient/lib/iaxclient_lib.c 2008-05-19 15:00:26 UTC (rev 1431) @@ -863,6 +863,16 @@ int cmin; audio_driver.start(&audio_driver); + + /* check and report if pointers are not good here */ + if ( !((unsigned int)call & 0xffffff00) ) + fprintf(stderr, "*** INVALID POINTER call = 0x%x ***\n", call); + + if ( !((unsigned int)call->encoder & 0xffffff00) ) + fprintf(stderr, "*** INVALID POINTER call->encoder = 0x%x ***\n", call->encoder); + + if ( !call->state ) + fprintf(stderr, "*** INVALID CALL STATE (0) ***\n"); /* use codec minimum if higher */ cmin = want_send_audio && call->encoder ? This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |