Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f27afe7d
Commit
f27afe7d
authored
Apr 19, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* httpd: better fix for mmsh.
parent
84cad9ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/misc/httpd.c
src/misc/httpd.c
+4
-4
No files found.
src/misc/httpd.c
View file @
f27afe7d
...
...
@@ -700,6 +700,7 @@ static int httpd_StreamCallBack( httpd_callback_sys_t *p_sys,
else
{
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
0
);
answer
->
i_body_offset
=
0
;
}
if
(
!
strcmp
(
stream
->
psz_mime
,
"video/x-ms-asf-stream"
)
)
...
...
@@ -713,12 +714,12 @@ static int httpd_StreamCallBack( httpd_callback_sys_t *p_sys,
httpd_MsgAdd
(
answer
,
"Pragma"
,
"no-cache"
);
httpd_MsgAdd
(
answer
,
"Pragma"
,
"client-id=%d"
,
rand
()
&
0x7fff
);
httpd_MsgAdd
(
answer
,
"Pragma"
,
"features=
\"
broadcast
\"
"
);
#if 0
/* Check if there is a xPlayStrm=1 */
for
(
i
=
0
;
i
<
query
->
i_name
;
i
++
)
{
if
(
!
strcasecmp
(
query
->
name
[
i
],
"Pragma"
)
&&
!strcasecmp
( query->value[i], "xPlayStrm=1" ) )
strstr
(
query
->
value
[
i
],
"xPlayStrm=1"
)
)
{
b_xplaystream
=
VLC_TRUE
;
}
...
...
@@ -728,7 +729,6 @@ static int httpd_StreamCallBack( httpd_callback_sys_t *p_sys,
{
answer
->
i_body_offset
=
0
;
}
#endif
}
else
{
...
...
@@ -2024,7 +2024,7 @@ static void httpd_HostThread( httpd_host_t *host )
}
else
if
(
cl
->
i_state
==
HTTPD_CLIENT_SEND_DONE
)
{
if
(
cl
->
i_mode
==
HTTPD_CLIENT_FILE
)
if
(
cl
->
i_mode
==
HTTPD_CLIENT_FILE
||
cl
->
answer
.
i_body_offset
==
0
)
{
cl
->
url
=
NULL
;
if
(
(
cl
->
query
.
i_proto
==
HTTPD_PROTO_HTTP
&&
...
...
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