[vlc-devel] commit: Avoid dummy "unknown option dccp-service" error ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Mar 4 19:56:39 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue Mar 4 20:56:33 2008 +0200| [3cd17e7d668e174ebc6dcf6510aefffcb406c765]
Avoid dummy "unknown option dccp-service" error
Signed-off-by: Rémi Denis-Courmont <rem at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3cd17e7d668e174ebc6dcf6510aefffcb406c765
---
src/network/io.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/network/io.c b/src/network/io.c
index 905f605..28e5c21 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -125,12 +125,15 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
#endif
#ifdef DCCP_SOCKOPT_SERVICE
- char *dccps = var_CreateGetNonEmptyString (p_this, "dccp-service");
- if (dccps != NULL)
+ if (socktype == SOL_DCCP)
{
- setsockopt (fd, SOL_DCCP, DCCP_SOCKOPT_SERVICE, dccps,
- (strlen (dccps) + 3) & ~3);
- free (dccps);
+ char *dccps = var_CreateGetNonEmptyString (p_this, "dccp-service");
+ if (dccps != NULL)
+ {
+ setsockopt (fd, SOL_DCCP, DCCP_SOCKOPT_SERVICE, dccps,
+ (strlen (dccps) + 3) & ~3);
+ free (dccps);
+ }
}
#endif
More information about the vlc-devel
mailing list