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
39a529ac
Commit
39a529ac
authored
Aug 08, 2008
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacontrol_core: libvlc_media_player_get_length/time return time in ms, no need for conversion.
Additionnaly, add check for exception.
parent
2ba42a48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/control/mediacontrol_core.c
src/control/mediacontrol_core.c
+11
-8
No files found.
src/control/mediacontrol_core.c
View file @
39a529ac
...
...
@@ -398,17 +398,20 @@ mediacontrol_get_stream_information( mediacontrol_Instance *self,
retval
->
url
=
libvlc_media_get_mrl
(
p_media
,
&
ex
);
/* TIME and LENGTH are in microseconds. We want them in ms */
retval
->
position
=
libvlc_media_player_get_time
(
self
->
p_media_player
,
&
ex
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
libvlc_exception_clear
(
&
ex
);
retval
->
position
=
0
;
}
retval
->
length
=
libvlc_media_player_get_length
(
self
->
p_media_player
,
&
ex
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
libvlc_exception_clear
(
&
ex
);
retval
->
length
=
0
;
}
retval
->
position
=
private_mediacontrol_unit_convert
(
self
->
p_media_player
,
mediacontrol_MediaTime
,
a_key
,
retval
->
position
);
retval
->
length
=
private_mediacontrol_unit_convert
(
self
->
p_media_player
,
mediacontrol_MediaTime
,
a_key
,
retval
->
length
);
}
return
retval
;
}
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