From: Andreas Eversberg Date: Sun, 20 May 2012 14:37:27 +0000 (+0200) Subject: Only receive RTP audio data, if connected to remote. X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=89a525b798faa8da871a7b4a1798c6e8d0d24354;hp=736182d6fd9398d9d246ea3337d06b225e22f7fb;ds=sidebyside Only receive RTP audio data, if connected to remote. --- diff --git a/sip.cpp b/sip.cpp index 5358fb4..ee455a8 100644 --- a/sip.cpp +++ b/sip.cpp @@ -285,7 +285,8 @@ static int rtp_sock_callback(struct lcr_fd *fd, unsigned int what, void *instanc // psip->rtp_shutdown(); return len; } - rc = rtp_decode(psip, buffer, len); + if (psip->p_s_rtp_is_connected) + rc = rtp_decode(psip, buffer, len); } return rc;