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
2f800ff5
Commit
2f800ff5
authored
Sep 28, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP out: clarify dst= syntax change error
parent
79b4dbf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
modules/access_output/http.c
modules/access_output/http.c
+22
-3
No files found.
modules/access_output/http.c
View file @
2f800ff5
...
...
@@ -142,14 +142,33 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
const
char
*
path
=
p_access
->
psz_path
;
#if 1
/* Skip everything before / - backward compatibiltiy with VLC 1.1 */
path
+=
strcspn
(
path
,
"/"
);
if
(
path
>
p_access
->
psz_path
)
{
msg_Err
(
p_access
,
"
\"
%.*s
\"
HTTP host specification ignored"
,
path
-
p_access
->
psz_path
,
p_access
->
psz_path
);
msg_Info
(
p_access
,
"(Use --http-host and/or --http-port instead.)"
);
const
char
*
port
=
strrchr
(
p_access
->
psz_path
,
':'
);
if
(
port
!=
NULL
&&
strchr
(
port
,
']'
)
!=
NULL
)
port
=
NULL
;
/* IPv6 numeral */
if
(
port
!=
p_access
->
psz_path
)
{
int
len
=
port
?
(
port
-
p_access
->
psz_path
)
:
(
int
)
strlen
(
p_access
->
psz_path
);
msg_Err
(
p_access
,
"
\"
%.*s
\"
HTTP host ignored"
,
len
,
p_access
->
psz_path
);
msg_Info
(
p_access
,
"Pass --http-host=IP on the command line instead."
);
}
if
(
port
!=
NULL
)
{
int
len
=
path
-
++
port
;
msg_Err
(
p_access
,
"
\"
%.*s
\"
HTTP port ignored"
,
len
,
port
);
msg_Info
(
p_access
,
"Pass --http-port=%.*s on the command line instead."
,
len
,
port
);
}
}
#endif
if
(
!*
path
)
path
=
"/"
;
...
...
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