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
2cbb6002
Commit
2cbb6002
authored
Dec 19, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/misc/rtsp.c: fixed support for pause with vlc as a client.
parent
56aa04bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
modules/misc/rtsp.c
modules/misc/rtsp.c
+14
-4
No files found.
modules/misc/rtsp.c
View file @
2cbb6002
...
@@ -877,6 +877,8 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
...
@@ -877,6 +877,8 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
break
;
break
;
case
HTTPD_MSG_PLAY
:
case
HTTPD_MSG_PLAY
:
/* This is kind of a kludge. Should we only support Aggregate
* Operations ? */
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
msg_Dbg
(
p_vod
,
"HTTPD_MSG_PLAY for session: %s"
,
psz_session
);
msg_Dbg
(
p_vod
,
"HTTPD_MSG_PLAY for session: %s"
,
psz_session
);
...
@@ -899,18 +901,26 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
...
@@ -899,18 +901,26 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
}
}
}
}
answer
->
i_status
=
46
0
;
answer
->
i_status
=
20
0
;
answer
->
psz_status
=
strdup
(
"O
nly Aggregate Operation Allowed
"
);
answer
->
psz_status
=
strdup
(
"O
K
"
);
answer
->
i_body
=
0
;
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
answer
->
p_body
=
NULL
;
break
;
break
;
case
HTTPD_MSG_PAUSE
:
case
HTTPD_MSG_PAUSE
:
/* This is kind of a kludge. Should we only support Aggregate
* Operations ? */
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
msg_Dbg
(
p_vod
,
"HTTPD_MSG_PAUSE for session: %s"
,
psz_session
);
msg_Dbg
(
p_vod
,
"HTTPD_MSG_PAUSE for session: %s"
,
psz_session
);
answer
->
i_status
=
460
;
p_rtsp
=
RtspClientGet
(
p_media
,
psz_session
);
answer
->
psz_status
=
strdup
(
"Only Aggregate Operation Allowed"
);
if
(
!
p_rtsp
)
break
;
vod_MediaControl
(
p_vod
,
p_media
,
psz_session
,
VOD_MEDIA_PAUSE
);
p_rtsp
->
b_paused
=
VLC_TRUE
;
answer
->
i_status
=
200
;
answer
->
psz_status
=
strdup
(
"OK"
);
answer
->
i_body
=
0
;
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
answer
->
p_body
=
NULL
;
break
;
break
;
...
...
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