Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6458cddb
Commit
6458cddb
authored
Apr 30, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix searching in aggregate mode for the RTSP VoD module. (fixes #655)
Pausing is still broken.
parent
65ff3035
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 @
6458cddb
...
...
@@ -780,7 +780,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
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
;
/* for now only multicast so easy */
...
...
@@ -799,6 +799,30 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
p_rtsp
=
RtspClientGet
(
p_media
,
psz_session
);
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
)
{
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