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
339ef8e2
Commit
339ef8e2
authored
Apr 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename and remove unused ACL parameter of httpd_UrlNewUnique()
parent
40b705ad
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
28 deletions
+26
-28
include/vlc_httpd.h
include/vlc_httpd.h
+1
-1
modules/misc/rtsp.c
modules/misc/rtsp.c
+2
-4
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+2
-3
src/libvlccore.sym
src/libvlccore.sym
+1
-1
src/missing.c
src/missing.c
+3
-4
src/network/httpd.c
src/network/httpd.c
+17
-15
No files found.
include/vlc_httpd.h
View file @
339ef8e2
...
@@ -101,7 +101,7 @@ VLC_API httpd_host_t *vlc_rtsp_HostNew( vlc_object_t * ) VLC_USED;
...
@@ -101,7 +101,7 @@ VLC_API httpd_host_t *vlc_rtsp_HostNew( vlc_object_t * ) VLC_USED;
VLC_API
void
httpd_HostDelete
(
httpd_host_t
*
);
VLC_API
void
httpd_HostDelete
(
httpd_host_t
*
);
/* register a new url */
/* register a new url */
VLC_API
httpd_url_t
*
httpd_UrlNew
Unique
(
httpd_host_t
*
,
const
char
*
psz_url
,
const
char
*
psz_user
,
const
char
*
psz_password
,
const
vlc_acl_t
*
p_acl
)
VLC_USED
;
VLC_API
httpd_url_t
*
httpd_UrlNew
(
httpd_host_t
*
,
const
char
*
psz_url
,
const
char
*
psz_user
,
const
char
*
psz_password
)
VLC_USED
;
/* register callback on a url */
/* register callback on a url */
VLC_API
int
httpd_UrlCatch
(
httpd_url_t
*
,
int
i_msg
,
httpd_callback_t
,
httpd_callback_sys_t
*
);
VLC_API
int
httpd_UrlCatch
(
httpd_url_t
*
,
int
i_msg
,
httpd_callback_t
,
httpd_callback_sys_t
*
);
/* delete a url */
/* delete a url */
...
...
modules/misc/rtsp.c
View file @
339ef8e2
...
@@ -372,8 +372,7 @@ static vod_media_t *MediaNew( vod_t *p_vod, const char *psz_name,
...
@@ -372,8 +372,7 @@ static vod_media_t *MediaNew( vod_t *p_vod, const char *psz_name,
p_sys
->
psz_path
,
psz_name
)
<
0
)
p_sys
->
psz_path
,
psz_name
)
<
0
)
return
NULL
;
return
NULL
;
p_media
->
p_rtsp_url
=
p_media
->
p_rtsp_url
=
httpd_UrlNewUnique
(
p_sys
->
p_rtsp_host
,
p_media
->
psz_rtsp_path
,
NULL
,
httpd_UrlNew
(
p_sys
->
p_rtsp_host
,
p_media
->
psz_rtsp_path
,
NULL
,
NULL
);
NULL
,
NULL
);
if
(
!
p_media
->
p_rtsp_url
)
if
(
!
p_media
->
p_rtsp_url
)
{
{
...
@@ -678,8 +677,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
...
@@ -678,8 +677,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
}
}
p_es
->
p_rtsp_url
=
p_es
->
p_rtsp_url
=
httpd_UrlNewUnique
(
p_vod
->
p_sys
->
p_rtsp_host
,
psz_urlc
,
NULL
,
NULL
,
httpd_UrlNew
(
p_vod
->
p_sys
->
p_rtsp_host
,
psz_urlc
,
NULL
,
NULL
);
NULL
);
if
(
!
p_es
->
p_rtsp_url
)
if
(
!
p_es
->
p_rtsp_url
)
{
{
...
...
modules/stream_out/rtsp.c
View file @
339ef8e2
...
@@ -125,8 +125,7 @@ rtsp_stream_t *RtspSetup( vlc_object_t *owner, vod_media_t *media,
...
@@ -125,8 +125,7 @@ rtsp_stream_t *RtspSetup( vlc_object_t *owner, vod_media_t *media,
char
*
user
=
var_InheritString
(
owner
,
"sout-rtsp-user"
);
char
*
user
=
var_InheritString
(
owner
,
"sout-rtsp-user"
);
char
*
pwd
=
var_InheritString
(
owner
,
"sout-rtsp-pwd"
);
char
*
pwd
=
var_InheritString
(
owner
,
"sout-rtsp-pwd"
);
rtsp
->
url
=
httpd_UrlNewUnique
(
rtsp
->
host
,
rtsp
->
psz_path
,
rtsp
->
url
=
httpd_UrlNew
(
rtsp
->
host
,
rtsp
->
psz_path
,
user
,
pwd
);
user
,
pwd
,
NULL
);
free
(
user
);
free
(
user
);
free
(
pwd
);
free
(
pwd
);
if
(
rtsp
->
url
==
NULL
)
if
(
rtsp
->
url
==
NULL
)
...
@@ -258,7 +257,7 @@ rtsp_stream_id_t *RtspAddId( rtsp_stream_t *rtsp, sout_stream_id_t *sid,
...
@@ -258,7 +257,7 @@ rtsp_stream_id_t *RtspAddId( rtsp_stream_t *rtsp, sout_stream_id_t *sid,
char
*
user
=
var_InheritString
(
rtsp
->
owner
,
"sout-rtsp-user"
);
char
*
user
=
var_InheritString
(
rtsp
->
owner
,
"sout-rtsp-user"
);
char
*
pwd
=
var_InheritString
(
rtsp
->
owner
,
"sout-rtsp-pwd"
);
char
*
pwd
=
var_InheritString
(
rtsp
->
owner
,
"sout-rtsp-pwd"
);
url
=
id
->
url
=
httpd_UrlNew
Unique
(
rtsp
->
host
,
urlbuf
,
user
,
pwd
,
NULL
);
url
=
id
->
url
=
httpd_UrlNew
(
rtsp
->
host
,
urlbuf
,
user
,
pwd
);
free
(
user
);
free
(
user
);
free
(
pwd
);
free
(
pwd
);
free
(
urlbuf
);
free
(
urlbuf
);
...
...
src/libvlccore.sym
View file @
339ef8e2
...
@@ -176,7 +176,7 @@ httpd_StreamNew
...
@@ -176,7 +176,7 @@ httpd_StreamNew
httpd_StreamSend
httpd_StreamSend
httpd_UrlCatch
httpd_UrlCatch
httpd_UrlDelete
httpd_UrlDelete
httpd_UrlNew
Unique
httpd_UrlNew
image_Ext2Fourcc
image_Ext2Fourcc
image_HandlerCreate
image_HandlerCreate
image_HandlerDelete
image_HandlerDelete
...
...
src/missing.c
View file @
339ef8e2
...
@@ -183,11 +183,10 @@ void httpd_UrlDelete (httpd_url_t *url)
...
@@ -183,11 +183,10 @@ void httpd_UrlDelete (httpd_url_t *url)
assert
(
0
);
assert
(
0
);
}
}
httpd_url_t
*
httpd_UrlNewUnique
(
httpd_host_t
*
host
,
const
char
*
url
,
httpd_url_t
*
httpd_UrlNew
(
httpd_host_t
*
host
,
const
char
*
url
,
const
char
*
login
,
const
char
*
password
,
const
char
*
login
,
const
char
*
password
)
const
vlc_acl_t
*
acl
)
{
{
(
void
)
host
;
(
void
)
url
;
(
void
)
login
;
(
void
)
password
;
(
void
)
acl
;
(
void
)
host
;
(
void
)
url
;
(
void
)
login
;
(
void
)
password
;
assert
(
0
);
assert
(
0
);
}
}
#endif
/* !ENABLE_HTTPD */
#endif
/* !ENABLE_HTTPD */
...
...
src/network/httpd.c
View file @
339ef8e2
...
@@ -68,6 +68,9 @@
...
@@ -68,6 +68,9 @@
#endif
#endif
static
void
httpd_ClientClean
(
httpd_client_t
*
cl
);
static
void
httpd_ClientClean
(
httpd_client_t
*
cl
);
static
httpd_url_t
*
httpd_UrlNewPrivate
(
httpd_host_t
*
,
const
char
*
,
const
char
*
,
const
char
*
,
const
vlc_acl_t
*
);
/* each host run in his own thread */
/* each host run in his own thread */
struct
httpd_host_t
struct
httpd_host_t
...
@@ -447,9 +450,9 @@ httpd_file_t *httpd_FileNew( httpd_host_t *host,
...
@@ -447,9 +450,9 @@ httpd_file_t *httpd_FileNew( httpd_host_t *host,
{
{
httpd_file_t
*
file
=
xmalloc
(
sizeof
(
httpd_file_t
)
);
httpd_file_t
*
file
=
xmalloc
(
sizeof
(
httpd_file_t
)
);
if
(
(
file
->
url
=
httpd_UrlNewUnique
(
host
,
psz_url
,
psz_user
,
file
->
url
=
httpd_UrlNewPrivate
(
host
,
psz_url
,
psz_user
,
psz_password
,
psz_password
,
p_acl
)
p_acl
);
)
==
NULL
)
if
(
file
->
url
==
NULL
)
{
{
free
(
file
);
free
(
file
);
return
NULL
;
return
NULL
;
...
@@ -595,9 +598,9 @@ httpd_handler_t *httpd_HandlerNew( httpd_host_t *host, const char *psz_url,
...
@@ -595,9 +598,9 @@ httpd_handler_t *httpd_HandlerNew( httpd_host_t *host, const char *psz_url,
{
{
httpd_handler_t
*
handler
=
xmalloc
(
sizeof
(
httpd_handler_t
)
);
httpd_handler_t
*
handler
=
xmalloc
(
sizeof
(
httpd_handler_t
)
);
if
(
(
handler
->
url
=
httpd_UrlNewUnique
(
host
,
psz_url
,
psz_user
,
handler
->
url
=
httpd_UrlNewPrivate
(
host
,
psz_url
,
psz_user
,
psz_password
,
psz_password
,
p_acl
)
p_acl
);
)
==
NULL
)
if
(
handler
->
url
==
NULL
)
{
{
free
(
handler
);
free
(
handler
);
return
NULL
;
return
NULL
;
...
@@ -666,7 +669,8 @@ httpd_redirect_t *httpd_RedirectNew( httpd_host_t *host, const char *psz_url_dst
...
@@ -666,7 +669,8 @@ httpd_redirect_t *httpd_RedirectNew( httpd_host_t *host, const char *psz_url_dst
{
{
httpd_redirect_t
*
rdir
=
xmalloc
(
sizeof
(
httpd_redirect_t
)
);
httpd_redirect_t
*
rdir
=
xmalloc
(
sizeof
(
httpd_redirect_t
)
);
if
(
!
(
rdir
->
url
=
httpd_UrlNewUnique
(
host
,
psz_url_src
,
NULL
,
NULL
,
NULL
)
)
)
rdir
->
url
=
httpd_UrlNew
(
host
,
psz_url_src
,
NULL
,
NULL
);
if
(
rdir
->
url
==
NULL
)
{
{
free
(
rdir
);
free
(
rdir
);
return
NULL
;
return
NULL
;
...
@@ -849,9 +853,9 @@ httpd_stream_t *httpd_StreamNew( httpd_host_t *host,
...
@@ -849,9 +853,9 @@ httpd_stream_t *httpd_StreamNew( httpd_host_t *host,
{
{
httpd_stream_t
*
stream
=
xmalloc
(
sizeof
(
httpd_stream_t
)
);
httpd_stream_t
*
stream
=
xmalloc
(
sizeof
(
httpd_stream_t
)
);
if
(
(
stream
->
url
=
httpd_UrlNewUnique
(
host
,
psz_url
,
psz_user
,
stream
->
url
=
httpd_UrlNewPrivate
(
host
,
psz_url
,
psz_user
,
psz_password
,
psz_password
,
p_acl
)
p_acl
);
)
==
NULL
)
if
(
stream
->
url
==
NULL
)
{
{
free
(
stream
);
free
(
stream
);
return
NULL
;
return
NULL
;
...
@@ -1237,12 +1241,10 @@ static httpd_url_t *httpd_UrlNewPrivate( httpd_host_t *host, const char *psz_url
...
@@ -1237,12 +1241,10 @@ static httpd_url_t *httpd_UrlNewPrivate( httpd_host_t *host, const char *psz_url
return
url
;
return
url
;
}
}
httpd_url_t
*
httpd_UrlNewUnique
(
httpd_host_t
*
host
,
const
char
*
psz_url
,
httpd_url_t
*
httpd_UrlNew
(
httpd_host_t
*
host
,
const
char
*
psz_url
,
const
char
*
psz_user
,
const
char
*
psz_password
,
const
char
*
psz_user
,
const
char
*
psz_password
)
const
vlc_acl_t
*
p_acl
)
{
{
return
httpd_UrlNewPrivate
(
host
,
psz_url
,
psz_user
,
return
httpd_UrlNewPrivate
(
host
,
psz_url
,
psz_user
,
psz_password
,
NULL
);
psz_password
,
p_acl
);
}
}
/* register callback on a url */
/* register callback on a url */
...
...
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