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
03b32e8e
Commit
03b32e8e
authored
Nov 30, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/gtk/playlist.c:
* show duration in playlist window if available
parent
78ba4b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
modules/gui/gtk/playlist.c
modules/gui/gtk/playlist.c
+13
-2
No files found.
modules/gui/gtk/playlist.c
View file @
03b32e8e
...
...
@@ -2,7 +2,7 @@
* gtk_playlist.c : Interface for the playlist dialog
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: playlist.c,v 1.
4 2003/07/23 01:13:47 gbazin
Exp $
* $Id: playlist.c,v 1.
5 2003/11/30 19:42:52 sigmunau
Exp $
*
* Authors: Pierre Baillet <oct@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
...
...
@@ -694,8 +694,19 @@ void GtkRebuildCList( GtkCList * p_clist, playlist_t * p_playlist )
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
for
(
i_dummy
=
p_playlist
->
i_size
;
i_dummy
--
;
)
{
char
psz_duration
[
14
];
mtime_t
dur
=
p_playlist
->
pp_items
[
i_dummy
]
->
i_duration
;
if
(
dur
!=
-
1
)
{
sprintf
(
psz_duration
,
"%d:%2.2d:%2.2d"
,
(
int
)(
dur
/
3600
),
(
int
)((
dur
%
3600
)
/
60
),
(
int
)(
dur
%
60
)
);
}
else
{
memcpy
(
psz_duration
,
"no info"
,
sizeof
(
"no info"
));
}
ppsz_text
[
0
]
=
p_playlist
->
pp_items
[
i_dummy
]
->
psz_name
;
ppsz_text
[
1
]
=
"no info"
;
ppsz_text
[
1
]
=
strdup
(
psz_duration
)
;
gtk_clist_insert
(
p_clist
,
0
,
ppsz_text
);
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
...
...
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