Changeset 750:09231e64687e in mediastreamer2


Ignore:
Timestamp:
Oct 27, 2009 1:55:48 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

A RtpTransport? should return 0 in case of of non-errno managed error.
A return value of 0 is then ignored by oRTP

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@738 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/oRTP/src/rtpsession_inet.c

    r493 r750  
    926926                { 
    927927                        int errnum=getSocketErrorCode(); 
    928  
    929                         if (error == 0) 
    930                         { 
    931                                 ortp_warning 
    932                                         ("rtp_recv: strange... recv() returned zero."); 
     928                        if (error == 0){ 
     929                                /*0 can be returned by RtpTransport functions in case of EWOULDBLOCK*/ 
     930                                /*we ignore it*/ 
     931                                /*ortp_warning 
     932                                        ("rtp_recv: strange... recv() returned zero.");*/ 
    933933                        } 
    934934                        else if (!is_would_block_error(errnum)) 
Note: See TracChangeset for help on using the changeset viewer.