Only receive RTP audio data, if connected to remote.

This commit is contained in:
Andreas Eversberg 2012-05-20 16:37:27 +02:00
parent 736182d6fd
commit 89a525b798
1 changed files with 2 additions and 1 deletions

View File

@ -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;