Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
15569018
Commit
15569018
authored
Jan 20, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: fix sockets leak
parent
0f1b4876
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
src/misc/objects.c
src/misc/objects.c
+8
-10
No files found.
src/misc/objects.c
View file @
15569018
...
...
@@ -50,6 +50,14 @@
# include <unistd.h>
#else
# include <io.h>
# include <winsock2.h>
# include <ws2tcpip.h>
# undef read
# define read( a, b, c ) recv (a, b, c, 0)
# undef write
# define write( a, b, c ) send (a, b, c, 0)
# undef close
# define close( a ) closesocket (a)
#endif
#include <search.h>
...
...
@@ -303,9 +311,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
#ifdef WIN32
# include <winsock2.h>
# include <ws2tcpip.h>
/**
* select()-able pipes emulated using Winsock
*/
...
...
@@ -346,13 +351,6 @@ error:
closesocket
(
c
);
return
-
1
;
}
#undef read
#define read( a, b, c ) recv (a, b, c, 0)
#undef write
#define write( a, b, c ) send (a, b, c, 0)
#undef close
#define close( a ) closesocket (a)
#endif
/* WIN32 */
static
vlc_mutex_t
pipe_lock
=
VLC_STATIC_MUTEX
;
...
...
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