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;
}
/* Enlarge the socket buffers */
hack_send_buffer_size(rtp_fd, "master socket");
+ hack_send_buffer_size(rtp_fd6, "IPv6 on-demand socket");
/* We might well want to set additional broadcast- or multicast-related
* options here */
if(rtp_mode != RTP_REQUEST) {
static void rtp_stop(void) {
uaudio_thread_stop();
- close(rtp_fd);
- rtp_fd = -1;
- if(rtp_fd6 >= 0) {
- close(rtp_fd6);
- rtp_fd6 = -1;
- }
+ close(rtp_fd); rtp_fd = -1;
+ if(rtp_fd6 >= 0) { close(rtp_fd6); rtp_fd6 = -1; }
}
static void rtp_configure(void) {