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
c55e169d
Commit
c55e169d
authored
Apr 23, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/*: portability fixes.
* msvc/vlc.dsw: httpd is not a plugin anymore.
parent
291b59b6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
22 deletions
+13
-22
msvc/vlc.dsw
msvc/vlc.dsw
+0
-12
src/libvlc.h
src/libvlc.h
+0
-4
src/misc/httpd.c
src/misc/httpd.c
+11
-4
src/stream_output/announce.c
src/stream_output/announce.c
+2
-2
No files found.
msvc/vlc.dsw
View file @
c55e169d
...
@@ -102,18 +102,6 @@ Package=<4>
...
@@ -102,18 +102,6 @@ Package=<4>
###############################################################################
###############################################################################
Project: "plugin_httpd"=.\plugin_httpd.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "plugin_access_output_udp"=.\plugin_access_output_udp.dsp - Package Owner=<4>
Project: "plugin_access_output_udp"=.\plugin_access_output_udp.dsp - Package Owner=<4>
Package=<5>
Package=<5>
...
...
src/libvlc.h
View file @
c55e169d
...
@@ -846,11 +846,7 @@ vlc_module_begin();
...
@@ -846,11 +846,7 @@ vlc_module_begin();
SUB_AUTO_TEXT
,
SUB_AUTO_LONGTEXT
,
VLC_FALSE
);
SUB_AUTO_TEXT
,
SUB_AUTO_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"sub-autodetect-fuzzy"
,
3
,
NULL
,
add_integer
(
"sub-autodetect-fuzzy"
,
3
,
NULL
,
SUB_FUZZY_TEXT
,
SUB_FUZZY_LONGTEXT
,
VLC_TRUE
);
SUB_FUZZY_TEXT
,
SUB_FUZZY_LONGTEXT
,
VLC_TRUE
);
#if defined( WIN32 )
add_string
(
"sub-autodetect-path"
,
".
\\
subtitles"
,
NULL
,
#else
add_string
(
"sub-autodetect-path"
,
"./Subtitles, ./subtitles"
,
NULL
,
add_string
(
"sub-autodetect-path"
,
"./Subtitles, ./subtitles"
,
NULL
,
#endif
SUB_PATH_TEXT
,
SUB_PATH_LONGTEXT
,
VLC_TRUE
);
SUB_PATH_TEXT
,
SUB_PATH_LONGTEXT
,
VLC_TRUE
);
add_file
(
"sub-file"
,
NULL
,
NULL
,
add_file
(
"sub-file"
,
NULL
,
NULL
,
SUB_FILE_TEXT
,
SUB_FILE_LONGTEXT
,
VLC_TRUE
);
SUB_FILE_TEXT
,
SUB_FILE_LONGTEXT
,
VLC_TRUE
);
...
...
src/misc/httpd.c
View file @
c55e169d
...
@@ -1268,7 +1268,7 @@ static void httpd_ClientInit( httpd_client_t *cl )
...
@@ -1268,7 +1268,7 @@ static void httpd_ClientInit( httpd_client_t *cl )
{
{
cl
->
i_state
=
HTTPD_CLIENT_RECEIVING
;
cl
->
i_state
=
HTTPD_CLIENT_RECEIVING
;
cl
->
i_activity_date
=
mdate
();
cl
->
i_activity_date
=
mdate
();
cl
->
i_activity_timeout
=
50000000
LL
;
cl
->
i_activity_timeout
=
50000000
;
cl
->
i_buffer_size
=
10000
;
cl
->
i_buffer_size
=
10000
;
cl
->
i_buffer
=
0
;
cl
->
i_buffer
=
0
;
cl
->
p_buffer
=
malloc
(
cl
->
i_buffer_size
);
cl
->
p_buffer
=
malloc
(
cl
->
i_buffer_size
);
...
@@ -1933,11 +1933,13 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -1933,11 +1933,13 @@ static void httpd_HostThread( httpd_host_t *host )
if
(
answer
&&
(
*
url
->
psz_user
||
*
url
->
psz_password
)
)
if
(
answer
&&
(
*
url
->
psz_user
||
*
url
->
psz_password
)
)
{
{
/* create the headers */
/* create the headers */
char
id
[
strlen
(
url
->
psz_user
)
+
strlen
(
url
->
psz_password
)
+
2
];
char
*
b64
=
httpd_MsgGet
(
query
,
"Authorization"
);
/* BASIC id */
char
*
b64
=
httpd_MsgGet
(
query
,
"Authorization"
);
/* BASIC id */
char
auth
[
strlen
(
b64
)
+
1
];
char
*
auth
;
char
*
id
;
asprintf
(
&
id
,
"%s:%s"
,
url
->
psz_user
,
url
->
psz_password
);
auth
=
malloc
(
strlen
(
b64
)
+
1
);
sprintf
(
id
,
"%s:%s"
,
url
->
psz_user
,
url
->
psz_password
);
if
(
!
strncasecmp
(
b64
,
"BASIC"
,
5
)
)
if
(
!
strncasecmp
(
b64
,
"BASIC"
,
5
)
)
{
{
b64
+=
5
;
b64
+=
5
;
...
@@ -1956,8 +1958,13 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -1956,8 +1958,13 @@ static void httpd_HostThread( httpd_host_t *host )
httpd_MsgAdd
(
answer
,
"WWW-Authenticate"
,
"Basic realm=
\"
%s
\"
"
,
url
->
psz_user
);
httpd_MsgAdd
(
answer
,
"WWW-Authenticate"
,
"Basic realm=
\"
%s
\"
"
,
url
->
psz_user
);
/* We fail for all url */
/* We fail for all url */
b_auth_failed
=
VLC_TRUE
;
b_auth_failed
=
VLC_TRUE
;
free
(
id
);
free
(
auth
);
break
;
break
;
}
}
free
(
id
);
free
(
auth
);
}
}
if
(
!
url
->
catch
[
i_msg
].
cb
(
url
->
catch
[
i_msg
].
p_sys
,
cl
,
answer
,
query
)
)
if
(
!
url
->
catch
[
i_msg
].
cb
(
url
->
catch
[
i_msg
].
p_sys
,
cl
,
answer
,
query
)
)
...
...
src/stream_output/announce.c
View file @
c55e169d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* announce.c : announce handler
* announce.c : announce handler
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
* Copyright (C) 2002-2004 VideoLAN
* $Id
: stream_output.c 7307 2004-04-07 23:13:03Z zorglub
$
* $Id$
*
*
* Authors: Clment Stenac <zorglub@videolan.org>
* Authors: Clment Stenac <zorglub@videolan.org>
*
*
...
@@ -277,8 +277,8 @@ int announce_Register( announce_handler_t *p_announce,
...
@@ -277,8 +277,8 @@ int announce_Register( announce_handler_t *p_announce,
/* Do we already have a SAP announce handler ? */
/* Do we already have a SAP announce handler ? */
if
(
!
p_announce
->
p_sap
)
if
(
!
p_announce
->
p_sap
)
{
{
msg_Dbg
(
p_announce
,
"creating SAP announce handler"
);
sap_handler_t
*
p_sap
=
announce_SAPHandlerCreate
(
p_announce
);
sap_handler_t
*
p_sap
=
announce_SAPHandlerCreate
(
p_announce
);
msg_Dbg
(
p_announce
,
"creating SAP announce handler"
);
if
(
!
p_sap
)
if
(
!
p_sap
)
{
{
msg_Err
(
p_announce
,
"SAP handler creation failed"
);
msg_Err
(
p_announce
,
"SAP handler creation failed"
);
...
...
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