Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
8fe4188e
Commit
8fe4188e
authored
Feb 07, 2010
by
Rémi Denis-Courmont
Browse files
Use vlc_dup
parent
71a1c8a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/access/file.c
View file @
8fe4188e
...
...
@@ -68,7 +68,6 @@
# define lseek _lseeki64
#elif defined( UNDER_CE )
/* FIXME the commandline on wince is a mess */
# define dup(a) -1
# define PathIsNetworkPathW(wpath) (! wcsncmp(wpath, L"\\\\", 2))
#endif
...
...
@@ -145,7 +144,7 @@ int Open( vlc_object_t *p_this )
int
oldfd
=
strtol
(
path
,
&
end
,
10
);
if
(
*
end
==
'\0'
)
fd
=
dup
(
oldfd
);
fd
=
vlc_
dup
(
oldfd
);
#ifdef HAVE_FDOPENDIR
else
if
(
*
end
==
'/'
&&
end
>
path
)
{
...
...
modules/access_output/file.c
View file @
8fe4188e
...
...
@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this )
#ifdef WIN32
setmode
(
fileno
(
stdout
),
O_BINARY
);
#endif
fd
=
dup
(
fileno
(
stdout
));
fd
=
vlc_
dup
(
fileno
(
stdout
));
msg_Dbg
(
p_access
,
"using stdout"
);
#else
#warning stdout is not supported on Windows Mobile, but may be used on Windows CE
...
...
modules/stream_out/rtcp.c
View file @
8fe4188e
...
...
@@ -82,7 +82,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
{
/* RTP/RTCP mux: duplicate the socket */
#ifndef WIN32
fd
=
dup
(
rtp_fd
);
fd
=
vlc_
dup
(
rtp_fd
);
#elif defined(UNDER_CE)
#warning Muxed RTP/RTCP unimplemented!
fd
=
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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