Hi,
I am
using ortp lib for an application.
Issue:when I try to
receive a voice stream using session_set_select() function
I don't see calling applicatio being suspended or blocked at
that point instead program counter moves on.I am assuming
select func suspends until some events arrive on one of the
three sets passed in argument.
I
wanted to use "select set" because I am using 2 different
rtp sessions in the same thread and wanted to wait on
activity.
I have
done the initialization as shown below:
recv_session_set = session_set_new();
recv_session = rtp_session_new(RTP_SESSION_ RECVONLY);
rtp_session_set_scheduling_ mode(recv_session,
1);
rtp_session_set_blocking_ mode(recv_session,
0);
and
the looping code is shown below:
do
{
session_set_set(recv_session_ set,
recv_session);
ret=session_set_select(recv_ session_set,NULL,NULL);
<---------Expecting to get suspended here
if (session_set_is_set(recv_ session_set,recv_session))
{
mb = rtp_session_recvm_with_ts( recv_session,
time_stamp);
........
..........
}
}
while (true);
Am I
missing something here.
Thanks
for the support in advance.
Thanks,
Pavan