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
8528c53a
Commit
8528c53a
authored
May 23, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vod_rtsp: use CLOCK_FREQ
parent
84d7407b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/misc/rtsp.c
modules/misc/rtsp.c
+2
-2
No files found.
modules/misc/rtsp.c
View file @
8528c53a
...
@@ -1113,7 +1113,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
...
@@ -1113,7 +1113,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
{
double
f_pos
=
ParseNPT
(
psz_position
+
4
);
double
f_pos
=
ParseNPT
(
psz_position
+
4
);
msg_Dbg
(
p_vod
,
"seeking request: %s"
,
psz_position
);
msg_Dbg
(
p_vod
,
"seeking request: %s"
,
psz_position
);
f_pos
/=
((
double
)(
p_media
->
i_length
))
/
1000
/
1000
/
100
;
f_pos
/=
((
double
)(
p_media
->
i_length
))
/
CLOCK_FREQ
/
100
;
CommandPush
(
p_vod
,
RTSP_CMD_TYPE_SEEK
,
p_media
,
CommandPush
(
p_vod
,
RTSP_CMD_TYPE_SEEK
,
p_media
,
psz_session
,
f_pos
,
NULL
);
psz_session
,
f_pos
,
NULL
);
}
}
...
@@ -1447,7 +1447,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
...
@@ -1447,7 +1447,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
{
double
f_pos
=
ParseNPT
(
psz_position
+
4
);
double
f_pos
=
ParseNPT
(
psz_position
+
4
);
msg_Dbg
(
p_vod
,
"seeking request: %s"
,
psz_position
);
msg_Dbg
(
p_vod
,
"seeking request: %s"
,
psz_position
);
f_pos
/=
((
double
)(
p_media
->
i_length
))
/
1000
/
1000
/
100
;
f_pos
/=
((
double
)(
p_media
->
i_length
))
/
CLOCK_FREQ
/
100
;
CommandPush
(
p_vod
,
RTSP_CMD_TYPE_SEEK
,
p_media
,
CommandPush
(
p_vod
,
RTSP_CMD_TYPE_SEEK
,
p_media
,
psz_session
,
f_pos
,
NULL
);
psz_session
,
f_pos
,
NULL
);
}
}
...
...
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