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
ad338835
Commit
ad338835
authored
Jan 16, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Duration is in millisecs, not in microsecs.
parent
a6b1ff10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+4
-4
projects/macosx/framework/Sources/VLCTime.m
projects/macosx/framework/Sources/VLCTime.m
+2
-2
No files found.
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
ad338835
...
...
@@ -451,7 +451,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
// Time is managed in seconds, while duration is managed in microseconds
// TODO: Redo VLCTime to provide value numberAsMilliseconds, numberAsMicroseconds, numberAsSeconds, numberAsMinutes, numberAsHours
libvlc_media_player_set_time
(
(
libvlc_media_player_t
*
)
instance
,
(
value
?
[[
value
numberValue
]
longLongValue
]
/
1000
:
0
),
(
value
?
[[
value
numberValue
]
longLongValue
]
:
0
),
&
ex
);
catch_exception
(
&
ex
);
}
...
...
@@ -733,7 +733,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
{
if
(
[
self
isSeekable
]
)
{
interval
=
interval
*
1000
000
;
interval
=
interval
*
1000
;
[
self
setTime
:
[
VLCTime
timeWithInt
:
([[
self
time
]
intValue
]
-
interval
)]];
}
}
...
...
@@ -742,7 +742,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
{
if
(
[
self
isSeekable
]
)
{
interval
=
interval
*
1000
000
;
interval
=
interval
*
1000
;
[
self
setTime
:
[
VLCTime
timeWithInt
:
([[
self
time
]
intValue
]
+
interval
)]];
}
}
...
...
projects/macosx/framework/Sources/VLCTime.m
View file @
ad338835
...
...
@@ -96,7 +96,7 @@
{
if
(
value
)
{
long
long
duration
=
[
value
longLongValue
]
/
1000
000
;
long
long
duration
=
[
value
longLongValue
]
/
1000
;
long
long
positiveDuration
=
llabs
(
duration
);
if
(
positiveDuration
>
3600
)
return
[
NSString
stringWithFormat
:
@"%s%01d:%02d:%02d"
,
...
...
@@ -121,7 +121,7 @@
{
if
(
value
)
{
long
long
duration
=
[
value
longLongValue
]
/
1000
000
;
long
long
duration
=
[
value
longLongValue
]
/
1000
;
long
long
positiveDuration
=
llabs
(
duration
);
long
hours
=
positiveDuration
/
3600
;
long
mins
=
(
positiveDuration
/
60
)
%
60
;
...
...
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