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
ca6f3346
Commit
ca6f3346
authored
Sep 25, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix simulatenous HTTPd use of RTSP and HTTP
parent
62720ebc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/network/httpd.c
src/network/httpd.c
+5
-2
No files found.
src/network/httpd.c
View file @
ca6f3346
...
...
@@ -79,6 +79,7 @@ struct httpd_host_t
/* address/port and socket for listening at connections */
int
*
fds
;
unsigned
nfd
;
unsigned
port
;
vlc_thread_t
thread
;
vlc_mutex_t
lock
;
...
...
@@ -1033,6 +1034,7 @@ static httpd_host_t *httpd_HostCreate( vlc_object_t *p_this,
vlc_tls_creds_t
*
p_tls
)
{
httpd_host_t
*
host
;
unsigned
port
=
var_InheritInteger
(
p_this
->
p_libvlc
,
portvar
);
/* to be sure to avoid multiple creation */
vlc_mutex_lock
(
&
httpd
.
mutex
);
...
...
@@ -1043,7 +1045,8 @@ static httpd_host_t *httpd_HostCreate( vlc_object_t *p_this,
host
=
httpd
.
host
[
i
];
/* cannot mix TLS and non-TLS hosts */
if
(
(
host
->
p_tls
!=
NULL
)
!=
(
p_tls
!=
NULL
)
)
if
(
host
->
port
!=
port
||
(
host
->
p_tls
!=
NULL
)
!=
(
p_tls
!=
NULL
)
)
continue
;
/* Increase existing matching host reference count.
...
...
@@ -1073,7 +1076,6 @@ static httpd_host_t *httpd_HostCreate( vlc_object_t *p_this,
host
->
i_ref
=
1
;
char
*
hostname
=
var_InheritString
(
p_this
->
p_libvlc
,
hostvar
);
int
port
=
var_InheritInteger
(
p_this
->
p_libvlc
,
portvar
);
host
->
fds
=
net_ListenTCP
(
p_this
,
hostname
,
port
);
free
(
hostname
);
if
(
host
->
fds
==
NULL
)
...
...
@@ -1089,6 +1091,7 @@ static httpd_host_t *httpd_HostCreate( vlc_object_t *p_this,
goto
error
;
}
host
->
port
=
port
;
host
->
i_url
=
0
;
host
->
url
=
NULL
;
host
->
i_client
=
0
;
...
...
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