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
5232e588
Commit
5232e588
authored
May 17, 2004
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/hotkeys.c: Fixed a bug with hotkey 't': length was
sometimes not display, although it was known.
parent
596da306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
21 deletions
+11
-21
modules/control/hotkeys.c
modules/control/hotkeys.c
+11
-21
No files found.
modules/control/hotkeys.c
View file @
5232e588
...
...
@@ -408,35 +408,25 @@ static void Run( intf_thread_t *p_intf )
}
else
if
(
i_action
==
ACTIONID_POSITION
)
{
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
char
psz_duration
[
MSTRTIME_MAX_SIZE
];
char
psz_time
[
MSTRTIME_MAX_SIZE
];
vlc_value_t
time
;
mtime_t
i_seconds
;
var_Get
(
p_input
,
"time"
,
&
time
);
i_seconds
=
time
.
i_time
/
1000000
;
secstotimestr
(
psz_time
,
i_seconds
);
if
(
p_playlist
)
var_Get
(
p_input
,
"length"
,
&
time
);
if
(
time
.
i_time
>
0
)
{
mtime_t
dur
=
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
input
.
i_duration
;
i_seconds
=
time
.
i_time
/
1000000
;
secstotimestr
(
psz_time
,
i_seconds
);
if
(
dur
!=
-
1
)
{
secstotimestr
(
psz_duration
,
dur
/
1000000
);
vout_OSDMessage
(
p_playlist
,
"%s / %s"
,
psz_time
,
psz_duration
);
}
else
if
(
i_seconds
>
0
)
{
vout_OSDMessage
(
p_playlist
,
psz_time
);
}
vlc_object_release
(
p_playlist
);
secstotimestr
(
psz_duration
,
time
.
i_time
/
1000000
);
vout_OSDMessage
(
p_input
,
"%s / %s"
,
psz_time
,
psz_duration
);
}
else
if
(
i_seconds
>
0
)
{
vout_OSDMessage
(
p_input
,
psz_time
);
}
}
else
if
(
i_action
>=
ACTIONID_PLAY_BOOKMARK1
&&
...
...
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