Skip to content
Snippets Groups Projects
Commit 11786a10 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Tristan Matthews
Browse files

video: skip RTCP to fix excessive RTP packet loss

Change-Id: I208ba3a176b40ebb229dd2912d22ee75b9617771
parent ff522b2e
No related branches found
No related tags found
No related merge requests found
...@@ -232,6 +232,8 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size) ...@@ -232,6 +232,8 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
/* build fdset to listen to RTP and RTCP packets */ /* build fdset to listen to RTP and RTCP packets */
n = poll(p, 2, NET_POLL_TIMEOUT); n = poll(p, 2, NET_POLL_TIMEOUT);
if (n > 0) { if (n > 0) {
// FIXME:WORKAROUND: prevent excessive packet loss
#if 0
/* first try RTCP */ /* first try RTCP */
if (p[1].revents & POLLIN) { if (p[1].revents & POLLIN) {
from_len = sizeof(from); from_len = sizeof(from);
...@@ -248,6 +250,7 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size) ...@@ -248,6 +250,7 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
} }
break; break;
} }
#endif
/* then RTP */ /* then RTP */
if (p[0].revents & POLLIN) { if (p[0].revents & POLLIN) {
from_len = sizeof(from); from_len = sizeof(from);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment