[vlc-commits] sap: call recv() directly
Rémi Denis-Courmont
git at videolan.org
Sun May 10 18:59:31 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 10 19:58:18 2015 +0300| [90e0b1eb0d09c4868b82e23aec1c8e22bf091280] | committer: Rémi Denis-Courmont
sap: call recv() directly
net_Read() is identical to recv() outside the input thread and if
waitall is false.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90e0b1eb0d09c4868b82e23aec1c8e22bf091280
---
modules/services_discovery/sap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 4b06b1f..de512d1 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -554,8 +554,7 @@ static void *Run( void *data )
uint8_t p_buffer[MAX_SAP_BUFFER+1];
ssize_t i_read;
- i_read = net_Read (p_sd, ufd[i].fd, NULL, p_buffer,
- MAX_SAP_BUFFER, false);
+ i_read = recv (ufd[i].fd, p_buffer, MAX_SAP_BUFFER, 0);
if (i_read < 0)
msg_Warn (p_sd, "receive error: %s",
vlc_strerror_c(errno));
More information about the vlc-commits
mailing list