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
90e32697
Commit
90e32697
authored
Feb 10, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also add support for x-playNow in RtspCallback.
parent
f43078c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/misc/rtsp.c
modules/misc/rtsp.c
+7
-0
No files found.
modules/misc/rtsp.c
View file @
90e32697
...
...
@@ -623,6 +623,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
vod_media_t
*
p_media
=
(
vod_media_t
*
)
p_args
;
vod_t
*
p_vod
=
p_media
->
p_vod
;
char
*
psz_transport
=
NULL
;
char
*
psz_playnow
=
NULL
;
/* support option: x-playNow */
char
*
psz_session
=
NULL
;
rtsp_client_t
*
p_rtsp
;
...
...
@@ -638,6 +639,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
case
HTTPD_MSG_SETUP
:
{
psz_playnow
=
httpd_MsgGet
(
query
,
"x-playNow"
);
psz_transport
=
httpd_MsgGet
(
query
,
"Transport"
);
msg_Dbg
(
p_vod
,
"HTTPD_MSG_SETUP: transport=%s"
,
psz_transport
);
...
...
@@ -681,6 +683,9 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
}
}
if
(
psz_playnow
)
/* support option: x-playNow */
goto
rtsp_play_now
;
answer
->
i_status
=
200
;
answer
->
psz_status
=
strdup
(
"OK"
);
answer
->
i_body
=
0
;
...
...
@@ -724,6 +729,8 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
}
case
HTTPD_MSG_PLAY
:
rtsp_play_now:
/* This avoids code duplications although it is ugly. */
{
char
*
psz_output
,
ip
[
NI_MAXNUMERICHOST
];
int
i
,
i_port_audio
=
0
,
i_port_video
=
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