Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a3452c51
Commit
a3452c51
authored
Aug 08, 2008
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacontrol: libvlc_media_player_get_time/get_length return times in ms
parent
9029b521
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/control/mediacontrol_util.c
src/control/mediacontrol_util.c
+10
-10
No files found.
src/control/mediacontrol_util.c
View file @
a3452c51
...
...
@@ -142,11 +142,11 @@ private_mediacontrol_position2microsecond( libvlc_media_player_t * p_media_playe
l_time
=
libvlc_media_player_get_time
(
p_media_player
,
&
ex
);
/* Ignore exception, we will assume a 0 time value */
l_pos
=
1000
*
private_mediacontrol_unit_convert
(
p_media_player
,
pos
->
key
,
mediacontrol_MediaTime
,
pos
->
value
);
return
l_time
+
l_pos
;
l_pos
=
private_mediacontrol_unit_convert
(
p_media_player
,
pos
->
key
,
mediacontrol_MediaTime
,
pos
->
value
);
return
1000
*
(
l_time
+
l_pos
)
;
break
;
}
case
mediacontrol_ModuloPosition
:
...
...
@@ -164,12 +164,12 @@ private_mediacontrol_position2microsecond( libvlc_media_player_t * p_media_playe
l_time
=
libvlc_media_player_get_time
(
p_media_player
,
&
ex
);
/* Ignore exception, we will assume a 0 time value */
l_pos
=
(
1000
*
private_mediacontrol_unit_convert
(
p_media_player
,
pos
->
key
,
mediacontrol_MediaTime
,
pos
->
value
)
);
l_pos
=
private_mediacontrol_unit_convert
(
p_media_player
,
pos
->
key
,
mediacontrol_MediaTime
,
pos
->
value
);
return
(
l_time
+
l_pos
)
%
l_length
;
return
1000
*
(
(
l_time
+
l_pos
)
%
l_length
)
;
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