projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74c807
)
avtpsink: Remove SOCK_NONBLOCK from avtpsink
author
Andre Guedes
<andre.guedes@intel.com>
Fri, 4 Oct 2019 18:11:23 +0000
(11:11 -0700)
committer
Olivier CrĂȘte
<olivier.crete@ocrete.ca>
Wed, 5 Feb 2020 22:28:12 +0000
(22:28 +0000)
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.
ext/avtp/gstavtpsink.c
patch
|
blob
|
history
diff --git
a/ext/avtp/gstavtpsink.c
b/ext/avtp/gstavtpsink.c
index
b878742
..
6a4591b
100644
(file)
--- a/
ext/avtp/gstavtpsink.c
+++ b/
ext/avtp/gstavtpsink.c
@@
-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;