Commit f9c35694 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sap: call recv() directly

net_Read() is identical to recv() outside the input thread and if
waitall is false.
parent 1571438c
...@@ -554,8 +554,7 @@ static void *Run( void *data ) ...@@ -554,8 +554,7 @@ static void *Run( void *data )
uint8_t p_buffer[MAX_SAP_BUFFER+1]; uint8_t p_buffer[MAX_SAP_BUFFER+1];
ssize_t i_read; ssize_t i_read;
i_read = net_Read (p_sd, ufd[i].fd, NULL, p_buffer, i_read = recv (ufd[i].fd, p_buffer, MAX_SAP_BUFFER, 0);
MAX_SAP_BUFFER, false);
if (i_read < 0) if (i_read < 0)
msg_Warn (p_sd, "receive error: %s", msg_Warn (p_sd, "receive error: %s",
vlc_strerror_c(errno)); vlc_strerror_c(errno));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment