Problem with codec manager on iOS.

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

 



Looked into the problem and pjsua_var.med_endpt was null. I found this to be very weird as when I add debug to check if it's null after it inits, it works and when I removed it, it still works but after I work some more and recompile it stops working. If my math is correct, it should work all the time even if I add something non related to it to the code. I'll just say it works as it currently does to where I haven't noticed a problem and if it doesn't work I have a fall back that'll log out the problem is there.

On Mar 17, 2011, at 3:05 PM, Mr. Gecko wrote:

> Hello, I found that when I try to query the codec manager for all codecs, it seems to crash when locking the multex. I looked into it with GDB and it appears as if the manager is returned as address 0x8 which is empty, no codecs registered or anything. The same exact code on Mac OS runs great, I have no idea what the difference could be, but this is what I'm running.
> 
> pjmedia_codec_info codecs[PJMEDIA_CODEC_MGR_MAX_CODECS];
> unsigned int prio[PJMEDIA_CODEC_MGR_MAX_CODECS];
> unsigned int count = PJ_ARRAY_SIZE(codecs);
> status = pjmedia_codec_mgr_enum_codecs(pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), &count, codecs, prio);
> 
> if (status==PJ_SUCCESS) {
> 	for (int i=0; i<count; i++) {
> 		[codecsInfo setObject:[NSNumber numberWithUnsignedInt:prio[i]] forKey:[NSString stringWithFormat:@"%@/%u", [NSString stringWithPJString:codecs[i].encoding_name], codecs[i].clock_rate]];
> 	}
> }
> 
> I will look more into this when I get home, but thought I'll ask incase someone else had this problem and found a solution.
> 
> Thanks for any help,
> Mr. Gecko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4657 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110318/763c0a6e/attachment.p7s>


[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