Calling get_frame constantly without waiting

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

 



Hello,

I'm using only the pjmedia library and I'm not sure how to retrieve data
correctly.
A listener thread is calling get_frame() and if it doesn't receive any frame
(or receives an empty buffer),
then I sleep for 1 millisecond and call it again.

Is it good to sleep so little time?
I'm afraid that when calling the get_frame() with such little pauses, the
jitter buffer gets empty after each call, thus becomes useless.
Am I right?

Thanks,
Emil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091115/15b8afe5/attachment.html>


[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