Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
153deb49
Commit
153deb49
authored
Jan 15, 2005
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/playlist.cpp: when duration is not known, don't display (--:--:--)
parent
8313b721
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
TODO
TODO
+1
-1
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+7
-6
No files found.
TODO
View file @
153deb49
...
...
@@ -45,7 +45,7 @@ Platform: any
Urgency: Important
Description: proper DVD controls
Most importantly a proper button that will take you straight to the DVD menu. But also, next/prev chapter should be integrated with next/prev playlistitem.
Status:
Todo
Status:
Assigned to yoann (done)
Task
Difficulty: Easy
...
...
modules/gui/wxwindows/playlist.cpp
View file @
153deb49
...
...
@@ -516,26 +516,27 @@ void Playlist::UpdateTreeItem( playlist_t *p_playlist, wxTreeItemId item )
}
wxString
msg
;
wxString
duration
=
wxU
(
""
);
char
*
psz_author
=
playlist_ItemGetInfo
(
p_item
,
_
(
"Meta-information"
),
_
(
"Artist"
));
char
psz_duration
[
MSTRTIME_MAX_SIZE
];
mtime_t
dur
=
p_item
->
input
.
i_duration
;
if
(
dur
!=
-
1
)
{
secstotimestr
(
psz_duration
,
dur
/
1000000
);
else
memcpy
(
psz_duration
,
"-:--:--"
,
sizeof
(
"-:--:--"
)
);
duration
.
Append
(
wxU
(
" ( "
)
+
wxString
(
wxU
(
psz_duration
)
)
+
wxU
(
")"
)
);
}
if
(
!
strcmp
(
psz_author
,
""
)
||
p_item
->
input
.
b_fixed_name
==
VLC_TRUE
)
{
msg
.
Printf
(
wxString
(
wxU
(
p_item
->
input
.
psz_name
)
)
+
wxU
(
" ( "
)
+
wxString
(
wxU
(
psz_duration
)
)
+
wxU
(
")"
)
);
msg
.
Printf
(
wxString
(
wxU
(
p_item
->
input
.
psz_name
)
)
+
duration
);
}
else
{
msg
.
Printf
(
wxString
(
wxU
(
psz_author
))
+
wxT
(
" - "
)
+
wxString
(
wxU
(
p_item
->
input
.
psz_name
))
+
wxU
(
" ( "
)
+
wxString
(
wxU
(
psz_duration
)
)
+
wxU
(
")"
)
);
wxString
(
wxU
(
p_item
->
input
.
psz_name
))
+
duration
);
}
treectrl
->
SetItemText
(
item
,
msg
);
treectrl
->
SetItemImage
(
item
,
p_item
->
input
.
i_type
);
...
...
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