chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d517220
)
lib/uaudio-rtp.c: Fix initial values for socket descriptors.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 4 May 2020 18:26:42 +0000
(19:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 5 May 2020 22:18:28 +0000
(23:18 +0100)
The code in `rtp_stop' checks for the sentinel value -1 when trying to
close sockets. Without this, it might get (and then ignore!) a spurious
`EBADF' when shutting down.
lib/uaudio-rtp.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/uaudio-rtp.c
b/lib/uaudio-rtp.c
index 745113604ffe41a5e61945b24120ed21591b2946..2efd910b506d2cdbd4193cc5d872db02dcee34b4 100644
(file)
--- a/
lib/uaudio-rtp.c
+++ b/
lib/uaudio-rtp.c
@@
-55,10
+55,12
@@
static int rtp_payload;
/** @brief RTP output socket */
-static int rtp_fd;
+static int rtp_fd
= -1
;
/** @brief RTP output socket (IPv6) */
static int rtp_fd6;
+/** @brief RTP unicast output socket (IPv6) */
+static int rtp_fd6 = -1;
/** @brief RTP SSRC */
static uint32_t rtp_id;