Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4d9440ec
Commit
4d9440ec
authored
Aug 26, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement the Timestamp header
parent
53474be3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
11 deletions
+26
-11
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+16
-9
src/network/httpd.c
src/network/httpd.c
+10
-2
No files found.
modules/stream_out/rtsp.c
View file @
4d9440ec
...
...
@@ -287,7 +287,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
httpd_message_t
*
answer
,
httpd_message_t
*
query
)
{
rtsp_stream_t
*
rtsp
=
(
rtsp_stream_t
*
)
p_args
;
const
char
*
psz_session
=
NULL
,
*
psz
_cseq
;
const
char
*
psz_session
=
NULL
,
*
psz
;
if
(
answer
==
NULL
||
query
==
NULL
)
{
...
...
@@ -387,9 +387,14 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
httpd_MsgAdd
(
answer
,
"Server"
,
"%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz_cseq
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
);
psz
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz
);
psz
=
httpd_MsgGet
(
query
,
"Timestamp"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Timestamp"
,
"%s"
,
psz
);
httpd_MsgAdd
(
answer
,
"Cache-Control"
,
"%s"
,
"no-cache"
);
if
(
psz_session
)
...
...
@@ -433,8 +438,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
rtsp_stream_t
*
rtsp
=
id
->
stream
;
sout_stream_t
*
p_stream
=
id
->
stream
->
owner
;
char
psz_session_init
[
21
];
const
char
*
psz_session
;
const
char
*
psz_cseq
;
const
char
*
psz_session
,
*
psz
;
if
(
answer
==
NULL
||
query
==
NULL
)
return
VLC_SUCCESS
;
...
...
@@ -701,9 +705,12 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
break
;
}
psz_cseq
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz_cseq
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz_cseq
);
psz
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz
);
psz
=
httpd_MsgGet
(
query
,
"Timestamp"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Timestamp"
,
"%s"
,
psz
);
httpd_MsgAdd
(
answer
,
"Server"
,
"%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Content-Length"
,
"%d"
,
answer
->
i_body
);
httpd_MsgAdd
(
answer
,
"Cache-Control"
,
"%s"
,
"no-cache"
);
...
...
src/network/httpd.c
View file @
4d9440ec
...
...
@@ -2048,12 +2048,20 @@ static void httpd_HostThread( httpd_host_t *host )
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
psz
=
httpd_MsgGet
(
query
,
"Require"
);
if
(
psz
!=
NULL
)
{
answer
->
i_status
=
551
;
httpd_MsgAdd
(
query
,
"Unsupported"
,
"%s"
,
psz
);
}
psz
=
httpd_MsgGet
(
query
,
"Cseq"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Cseq"
,
"%s"
,
psz
);
psz
=
httpd_MsgGet
(
query
,
"
Require
"
);
psz
=
httpd_MsgGet
(
query
,
"
Timestamp
"
);
if
(
psz
!=
NULL
)
httpd_MsgAdd
(
query
,
"Unsupported"
,
"%s"
,
psz
);
httpd_MsgAdd
(
answer
,
"Timestamp"
,
"%s"
,
psz
);
httpd_MsgAdd
(
answer
,
"Server"
,
"%s"
,
PACKAGE_STRING
);
httpd_MsgAdd
(
answer
,
"Public"
,
"DESCRIBE, SETUP, "
"TEARDOWN, PLAY, PAUSE"
);
...
...
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