Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
448290d5
Commit
448290d5
authored
Mar 20, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: don't call setsockopt if compiling for Windows 8.0
parent
ca1e1569
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/network/udp.c
src/network/udp.c
+2
-0
No files found.
src/network/udp.c
View file @
448290d5
...
@@ -104,6 +104,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
...
@@ -104,6 +104,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
* SetSocketMediaStreamingMode is present in win 8 and later, so we set
* SetSocketMediaStreamingMode is present in win 8 and later, so we set
* receive buffer if that isn't present
* receive buffer if that isn't present
*/
*/
#if _WIN32_WINNT < 0x602
HINSTANCE
h_Network
=
LoadLibraryW
(
L"Windows.Networking.dll"
);
HINSTANCE
h_Network
=
LoadLibraryW
(
L"Windows.Networking.dll"
);
if
(
(
h_Network
==
NULL
)
||
if
(
(
h_Network
==
NULL
)
||
(
GetProcAddress
(
h_Network
,
"SetSocketMediaStreamingMode"
)
==
NULL
)
)
(
GetProcAddress
(
h_Network
,
"SetSocketMediaStreamingMode"
)
==
NULL
)
)
...
@@ -113,6 +114,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
...
@@ -113,6 +114,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
}
}
if
(
h_Network
)
if
(
h_Network
)
FreeLibrary
(
h_Network
);
FreeLibrary
(
h_Network
);
#endif
if
(
net_SockAddrIsMulticast
(
ptr
->
ai_addr
,
ptr
->
ai_addrlen
)
if
(
net_SockAddrIsMulticast
(
ptr
->
ai_addr
,
ptr
->
ai_addrlen
)
&&
(
sizeof
(
struct
sockaddr_storage
)
>=
ptr
->
ai_addrlen
))
&&
(
sizeof
(
struct
sockaddr_storage
)
>=
ptr
->
ai_addrlen
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment