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
fdf4ef95
Commit
fdf4ef95
authored
Apr 29, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be sure to write correct time values
parent
5a6a6caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/gui/skins2/vars/time.cpp
modules/gui/skins2/vars/time.cpp
+3
-3
No files found.
modules/gui/skins2/vars/time.cpp
View file @
fdf4ef95
...
...
@@ -63,14 +63,14 @@ const string StreamTime::getAsStringCurrTime( bool bShortFormat ) const
return
"-:--:--"
;
}
vlc_value_t
pos
;
vlc_value_t
pos
;
pos
.
f_float
=
0.0
;
var_Get
(
getIntf
()
->
p_sys
->
p_input
,
"position"
,
&
pos
);
if
(
pos
.
f_float
==
0.0
)
{
return
"-:--:--"
;
}
vlc_value_t
time
;
vlc_value_t
time
;
time
.
i_time
=
0L
;
var_Get
(
getIntf
()
->
p_sys
->
p_input
,
"time"
,
&
time
);
return
formatTime
(
time
.
i_time
/
1000000
,
bShortFormat
);
...
...
@@ -107,7 +107,7 @@ const string StreamTime::getAsStringDuration( bool bShortFormat ) const
return
"-:--:--"
;
}
vlc_value_t
pos
;
vlc_value_t
pos
;
pos
.
f_float
=
0.0
;
var_Get
(
getIntf
()
->
p_sys
->
p_input
,
"position"
,
&
pos
);
if
(
pos
.
f_float
==
0.0
)
{
...
...
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