[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] ortp: processing incoming stream
From: |
Simon Morlat |
Subject: |
Re: [Linphone-developers] ortp: processing incoming stream |
Date: |
Mon, 30 Nov 2009 14:54:47 +0100 |
> Now I see the problem: You call init_random_number_generator() in
> ortp_init() and then
>
> session->snd.ssrc=uint32_t_random();
>
> in rtp_session_init().
>
> The problem is that I call ortp_init() and rtp_session_init() from
> different threads. And since srand() influences only current thread
> rand() is called without initializing randomizer. I'm not sure whether
> this is a bug or a feature ;-) What do you think?
Thanks for pointing this problem. I think it is windows specific, since
on linux I never saw with programs running hundred of calls
simultaneously.
There is probably a windows-specific api to have random numbers with
threads.
Simon
- [Linphone-developers] ortp: processing incoming stream, Petr Kuba, 2009/11/20
- Re: [Linphone-developers] ortp: processing incoming stream, Simon Morlat, 2009/11/23
- [Linphone-developers] ortp: processing incoming stream, Filipp . Andjelo, 2009/11/26
- Re: [Linphone-developers] ortp: processing incoming stream, Petr Kuba, 2009/11/27
- Re: [Linphone-developers] ortp: processing incoming stream, Simon Morlat, 2009/11/27
- Re: [Linphone-developers] ortp: processing incoming stream, Petr Kuba, 2009/11/27
- Re: [Linphone-developers] ortp: processing incoming stream, Petr Kuba, 2009/11/30
- Re: [Linphone-developers] ortp: processing incoming stream,
Simon Morlat <=