From 3818b8f48799ca4109ddb5426144083d5de17fd2 Mon Sep 17 00:00:00 2001 From: smorlat Date: Tue, 27 Oct 2009 12:55:48 +0000 Subject: [PATCH] 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 --- linphone/oRTP/src/rtpsession_inet.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linphone/oRTP/src/rtpsession_inet.c b/linphone/oRTP/src/rtpsession_inet.c index 78a213578..2c4f9886b 100644 --- a/linphone/oRTP/src/rtpsession_inet.c +++ b/linphone/oRTP/src/rtpsession_inet.c @@ -925,11 +925,11 @@ rtp_session_rtp_recv (RtpSession * session, uint32_t user_ts) else { int errnum=getSocketErrorCode(); - - if (error == 0) - { - ortp_warning - ("rtp_recv: strange... recv() returned zero."); + if (error == 0){ + /*0 can be returned by RtpTransport functions in case of EWOULDBLOCK*/ + /*we ignore it*/ + /*ortp_warning + ("rtp_recv: strange... recv() returned zero.");*/ } else if (!is_would_block_error(errnum)) {