From 54cdf410bf16cc647bcc08f26324cc973a20336d Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Date: Wed, 30 Apr 2014 16:04:40 -0400
Subject: [PATCH] daemon: do not poll video RTCP stream
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Due to RTCP workaround introduced in 11786a108ff1982b81d765c16483144e27919d54,
the RTCP socket should not be polled.

Refs #46625

Change-Id: I16027a7d312baabb4b7c8af9f38406355f67031e
---
 daemon/src/video/socket_pair.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/daemon/src/video/socket_pair.cpp b/daemon/src/video/socket_pair.cpp
index f89683bca5..a9fb9a1588 100644
--- a/daemon/src/video/socket_pair.cpp
+++ b/daemon/src/video/socket_pair.cpp
@@ -231,7 +231,8 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
         }
 
         /* build fdset to listen to RTP and RTCP packets */
-        n = poll(p, 2, NET_POLL_TIMEOUT);
+        // FIXME:WORKAROUND: reduce to RTP handle until RTCP is fixed
+        n = poll(p, 1, NET_POLL_TIMEOUT);
         if (n > 0) {
 // FIXME:WORKAROUND: prevent excessive packet loss
 #if 0
-- 
GitLab