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
8c9cd59b
Commit
8c9cd59b
authored
Jan 26, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - playlist, Don't fetch name if you have title. Less memory used, I think.
parent
9272a98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+9
-6
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
8c9cd59b
...
@@ -225,19 +225,22 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
...
@@ -225,19 +225,22 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
ADD_META
(
p_item
,
Artist
);
ADD_META
(
p_item
,
Artist
);
break
;
break
;
case
VLC_META_ENGINE_TITLE
:
case
VLC_META_ENGINE_TITLE
:
char
*
psz_title
,
*
psz_name
;
char
*
psz_title
;
psz_title
=
input_item_GetTitle
(
p_item
->
p_input
);
psz_title
=
input_item_GetTitle
(
p_item
->
p_input
);
psz_name
=
input_item_GetName
(
p_item
->
p_input
);
if
(
psz_title
)
if
(
psz_title
)
{
{
ADD_META
(
p_item
,
Title
);
ADD_META
(
p_item
,
Title
);
free
(
psz_title
);
}
}
else
if
(
psz_name
)
else
{
{
item_col_strings
.
append
(
qfu
(
psz_name
)
);
psz_title
=
input_item_GetName
(
p_item
->
p_input
);
if
(
psz_title
)
{
item_col_strings
.
append
(
qfu
(
psz_title
)
);
}
free
(
psz_title
);
}
}
free
(
psz_title
);
free
(
psz_name
);
break
;
break
;
case
VLC_META_ENGINE_DESCRIPTION
:
case
VLC_META_ENGINE_DESCRIPTION
:
ADD_META
(
p_item
,
Description
);
ADD_META
(
p_item
,
Description
);
...
...
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