Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
03933a58
Commit
03933a58
authored
Dec 18, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http output: print warnings when setting the server address
parent
37eb6362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/access_output/http.c
modules/access_output/http.c
+8
-8
No files found.
modules/access_output/http.c
View file @
03933a58
...
@@ -142,7 +142,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -142,7 +142,6 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
const
char
*
path
=
p_access
->
psz_path
;
const
char
*
path
=
p_access
->
psz_path
;
/* Skip everything before / - backward compatibiltiy with VLC 1.1 */
path
+=
strcspn
(
path
,
"/"
);
path
+=
strcspn
(
path
,
"/"
);
if
(
path
>
p_access
->
psz_path
)
if
(
path
>
p_access
->
psz_path
)
{
{
...
@@ -152,10 +151,11 @@ static int Open( vlc_object_t *p_this )
...
@@ -152,10 +151,11 @@ static int Open( vlc_object_t *p_this )
if
(
port
!=
p_access
->
psz_path
)
if
(
port
!=
p_access
->
psz_path
)
{
{
int
len
=
(
port
?
port
:
path
)
-
p_access
->
psz_path
;
int
len
=
(
port
?
port
:
path
)
-
p_access
->
psz_path
;
/* msg_Err( p_access, "\"%.*s\" HTTP host ignored", len,
msg_Warn
(
p_access
,
"
\"
%.*s
\"
HTTP host might be ignored in "
p_access->psz_path );
"multiple-host configurations, use at your own risks."
,
msg_Info( p_access,
len
,
p_access
->
psz_path
);
"Pass --http-host=IP on the command line instead." ); */
msg_Info
(
p_access
,
"Consider passing --http-host=IP on the "
"command line instead."
);
char
host
[
len
+
1
];
char
host
[
len
+
1
];
strncpy
(
host
,
p_access
->
psz_path
,
len
);
strncpy
(
host
,
p_access
->
psz_path
,
len
);
...
@@ -167,9 +167,9 @@ static int Open( vlc_object_t *p_this )
...
@@ -167,9 +167,9 @@ static int Open( vlc_object_t *p_this )
if
(
port
!=
NULL
)
if
(
port
!=
NULL
)
{
{
/* int len = path - ++port;
/* int len = path - ++port;
msg_
Err( p_access, "\"%.*s\" HTTP port ignored", len, port );
msg_
Info( p_access, "Consider passing --%s-port=%.*s on the "
msg_Info( p_access, "Pass --%s-port=%.*s on the command line "
"command line instead.",
"instead.",
strcasecmp( p_access->psz_access, "https" )
strcasecmp( p_access->psz_access, "https" )
? "http" : "https", len, port ); */
? "http" : "https", len, port ); */
port
++
;
port
++
;
...
...
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