mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
e74c807633
commit
cd03c48f88
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ gst_avtp_sink_start (GstBaseSink * basesink)
|
||||||
return FALSE;
|
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) {
|
if (fd < 0) {
|
||||||
GST_ERROR_OBJECT (avtpsink, "Failed to open socket: %s", strerror (errno));
|
GST_ERROR_OBJECT (avtpsink, "Failed to open socket: %s", strerror (errno));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue