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
9368859b
Commit
9368859b
authored
Aug 14, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix windows compilation
parent
ffbd9272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modules/stream_out/standard.c
modules/stream_out/standard.c
+5
-8
No files found.
modules/stream_out/standard.c
View file @
9368859b
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#endif
#endif
#ifndef _WIN32_WINNT
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x050
1
# define _WIN32_WINNT 0x050
0
#endif
#endif
#include <vlc_common.h>
#include <vlc_common.h>
...
@@ -411,23 +411,20 @@ static int Open( vlc_object_t *p_this )
...
@@ -411,23 +411,20 @@ static int Open( vlc_object_t *p_this )
char
*
dhost
=
var_GetNonEmptyString
(
p_access
,
"dst-addr"
);
char
*
dhost
=
var_GetNonEmptyString
(
p_access
,
"dst-addr"
);
int
sport
=
var_GetInteger
(
p_access
,
"src-port"
);
int
sport
=
var_GetInteger
(
p_access
,
"src-port"
);
int
dport
=
var_GetInteger
(
p_access
,
"dst-port"
);
int
dport
=
var_GetInteger
(
p_access
,
"dst-port"
);
char
port
[
6
];
struct
sockaddr_storage
src
,
dst
;
struct
sockaddr_storage
src
,
dst
;
socklen_t
srclen
=
0
,
dstlen
=
0
;
socklen_t
srclen
=
0
,
dstlen
=
0
;
struct
addrinfo
*
res
;
struct
addrinfo
*
res
;
snprintf
(
port
,
sizeof
(
port
),
"%d"
,
dport
);
if
(
vlc_getaddrinfo
(
VLC_OBJECT
(
p_stream
),
dhost
,
dport
,
&
hints
,
&
res
)
==
0
)
if
(
getaddrinfo
(
dhost
,
port
,
&
hints
,
&
res
)
==
0
)
{
{
memcpy
(
&
dst
,
res
->
ai_addr
,
dstlen
=
res
->
ai_addrlen
);
memcpy
(
&
dst
,
res
->
ai_addr
,
dstlen
=
res
->
ai_addrlen
);
freeaddrinfo
(
res
);
vlc_
freeaddrinfo
(
res
);
}
}
snprintf
(
port
,
sizeof
(
port
),
"%d"
,
sport
);
if
(
vlc_getaddrinfo
(
VLC_OBJECT
(
p_stream
),
shost
,
sport
,
&
hints
,
&
res
)
==
0
)
if
(
getaddrinfo
(
shost
,
port
,
&
hints
,
&
res
)
==
0
)
{
{
memcpy
(
&
src
,
res
->
ai_addr
,
srclen
=
res
->
ai_addrlen
);
memcpy
(
&
src
,
res
->
ai_addr
,
srclen
=
res
->
ai_addrlen
);
freeaddrinfo
(
res
);
vlc_
freeaddrinfo
(
res
);
}
}
char
*
head
=
vlc_sdp_Start
(
VLC_OBJECT
(
p_stream
),
SOUT_CFG_PREFIX
,
char
*
head
=
vlc_sdp_Start
(
VLC_OBJECT
(
p_stream
),
SOUT_CFG_PREFIX
,
...
...
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