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
aa733478
Commit
aa733478
authored
Dec 03, 2003
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reinstate Duration column - perhaps it's time to get more plugins
using it.
parent
cb2ce817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+17
-15
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
aa733478
/*****************************************************************************
* playlist.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: playlist.cpp,v 1.2
7 2003/11/26 10:45:21 zorglub
Exp $
* Copyright (C) 2000-2001
, 2003
VideoLAN
* $Id: playlist.cpp,v 1.2
8 2003/12/03 13:35:19 rocky
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
*
...
...
@@ -24,11 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
/* malloc(), free() */
#include <errno.h>
/* ENOMEM */
#include <string.h>
/* strerror() */
#include <stdio.h>
#include <vlc/vlc.h>
#include <vlc/intf.h>
...
...
@@ -265,11 +260,9 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
wxDefaultPosition
,
wxSize
(
500
,
300
),
wxLC_REPORT
|
wxSUNKEN_BORDER
);
listview
->
InsertColumn
(
0
,
wxU
(
_
(
"Name"
))
);
#if 0
listview->InsertColumn( 1, wxU(_("Duration")) );
#endif
listview
->
InsertColumn
(
1
,
wxU
(
_
(
"Author"
))
);
listview
->
InsertColumn
(
2
,
wxU
(
_
(
"Group"
))
);
listview
->
InsertColumn
(
3
,
wxU
(
_
(
"Duration"
))
);
listview
->
SetColumnWidth
(
0
,
270
);
listview
->
SetColumnWidth
(
1
,
150
);
listview
->
SetColumnWidth
(
2
,
80
);
...
...
@@ -405,11 +398,20 @@ void Playlist::Rebuild()
listitem
.
SetTextColour
(
*
wxLIGHT_GREY
);
listview
->
SetItem
(
listitem
);
}
/* FIXME: we should try to find the actual duration... */
/* While we don't use it, hide it, it's ugly */
#if 0
listview->SetItem( i, 1, wxU(_("no info")) );
#endif
{
char
psz_duration
[
MSTRTIME_MAX_SIZE
];
mtime_t
dur
=
p_playlist
->
pp_items
[
i
]
->
i_duration
;
if
(
dur
!=
-
1
)
{
secstotimestr
(
psz_duration
,
dur
);
}
else
{
memcpy
(
psz_duration
,
"-:--:--"
,
sizeof
(
"-:--:--"
));
}
listview
->
SetItem
(
i
,
3
,
psz_duration
);
}
}
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