[Top][All Lists]

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

[Linphone-developers] Ortp:session_set_select() is not waiting on events

From: pavan kumar
Subject: [Linphone-developers] Ortp:session_set_select() is not waiting on events
Date: Thu, 12 Jun 2014 17:48:43 +0800 (SGT)

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:

         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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]