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
bbe98d26
Commit
bbe98d26
authored
May 01, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport [15493]
parent
51e722a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
modules/misc/rtsp.c
modules/misc/rtsp.c
+25
-1
No files found.
modules/misc/rtsp.c
View file @
bbe98d26
...
@@ -766,7 +766,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
...
@@ -766,7 +766,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
case
HTTPD_MSG_PLAY
:
case
HTTPD_MSG_PLAY
:
{
{
char
*
psz_output
,
ip
[
NI_MAXNUMERICHOST
];
char
*
psz_output
,
*
psz_position
,
ip
[
NI_MAXNUMERICHOST
];
int
i
,
i_port_audio
=
0
,
i_port_video
=
0
;
int
i
,
i_port_audio
=
0
,
i_port_video
=
0
;
/* for now only multicast so easy */
/* for now only multicast so easy */
...
@@ -785,6 +785,30 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
...
@@ -785,6 +785,30 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
p_rtsp
=
RtspClientGet
(
p_media
,
psz_session
);
p_rtsp
=
RtspClientGet
(
p_media
,
psz_session
);
if
(
!
p_rtsp
)
break
;
if
(
!
p_rtsp
)
break
;
if
(
p_rtsp
->
b_playing
)
{
char
*
psz_position
=
httpd_MsgGet
(
query
,
"Range"
);
if
(
psz_position
)
psz_position
=
strstr
(
psz_position
,
"npt="
);
if
(
psz_position
)
{
double
f_pos
;
char
*
end
;
msg_Dbg
(
p_vod
,
"seeking request: %s"
,
psz_position
);
psz_position
+=
4
;
/* FIXME: npt= is not necessarily formatted as a float */
f_pos
=
us_strtod
(
psz_position
,
&
end
);
if
(
end
>
psz_position
)
{
f_pos
/=
((
double
)(
p_media
->
i_length
))
/
1000
/
1000
/
100
;
vod_MediaControl
(
p_vod
,
p_media
,
psz_session
,
VOD_MEDIA_SEEK
,
f_pos
);
}
break
;
}
}
if
(
p_rtsp
->
b_playing
&&
p_rtsp
->
b_paused
)
if
(
p_rtsp
->
b_playing
&&
p_rtsp
->
b_paused
)
{
{
vod_MediaControl
(
p_vod
,
p_media
,
psz_session
,
vod_MediaControl
(
p_vod
,
p_media
,
psz_session
,
...
...
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