avtpsink: Remove SOCK_NONBLOCK from avtpsink

Current avtpsink code opens the AF_PACKET socket with SOCK_NONBLOCK
option. However, we actually want sendto() to block in case there isn't
available space in socket buffer.
This commit is contained in:
Andre Guedes 2019-10-04 11:11:23 -07:00 committed by Olivier Crête
parent e74c807633
commit cd03c48f88

View file

@ -219,7 +219,7 @@ gst_avtp_sink_start (GstBaseSink * basesink)
return FALSE;
}
fd = socket (AF_PACKET, SOCK_DGRAM | SOCK_NONBLOCK, htons (ETH_P_TSN));
fd = socket (AF_PACKET, SOCK_DGRAM, htons (ETH_P_TSN));
if (fd < 0) {
GST_ERROR_OBJECT (avtpsink, "Failed to open socket: %s", strerror (errno));
return FALSE;