]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/rtp.c
RTP out: hint the IP stack we won't be receiving anything on UDP sockets
[vlc] / modules / stream_out / rtp.c
index f7f80edeb0b104b7ec75edb62e490120620a3d75..edd53fd0dcdb6d0db27cfc1f9c08de15c2d3e950 100644 (file)
@@ -1029,6 +1029,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
                     msg_Err( p_stream, "cannot create RTP socket" );
                     goto error;
                 }
+                /* Ignore any unexpected incoming packet (including RTCP-RR
+                 * packets in case of rtcp-mux) */
+                setsockopt (fd, SOL_SOCKET, SO_RCVBUF, &(int){ 0 },
+                            sizeof (int));
                 rtp_add_sink( id, fd, p_sys->rtcp_mux );
             }
         }