mirror of https://bitbucket.org/ausocean/av.git
eeaf806c6e
It seems unnecessary to have the rtcp.Client.Done() func, considering that we could use the rtcp.Client.err channel itself to determine if the RTCP client has been stopped. We simple wait on a chan receive in revid in the error handling routine, and we check the 'ok' return - if it is false, then the err chan has been closed and we can get out of the error handling loop. This should also reduce CPU usage significantly. |
||
---|---|---|
.. | ||
rtcp | ||
rtmp | ||
rtp | ||
rtsp |