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
6041d1db
Commit
6041d1db
authored
Nov 09, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: factorize.
parent
cedacbef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
26 deletions
+14
-26
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+14
-26
No files found.
modules/meta_engine/taglib.cpp
View file @
6041d1db
...
...
@@ -578,35 +578,23 @@ static int WriteMeta( vlc_object_t *p_this )
char
*
psz_meta
;
#define SET( a, b ) \
if( b ) \
{ \
String* psz_tmp = new String( b, String::UTF8 ); \
p_tag->set##a( *psz_tmp ); \
delete psz_tmp; \
}
#define SET( a, b ) \
psz_meta = input_item_Get ## a( p_item ); \
if( psz_meta ) \
{ \
String* psz_tmp = new String( psz_meta, String::UTF8 ); \
p_tag->set##b( *psz_tmp ); \
delete psz_tmp; \
} \
free( psz_meta );
// Saving all common fields
// If the title is empty, use the name
psz_meta
=
input_item_GetTitleFbName
(
p_item
);
SET
(
Title
,
psz_meta
);
free
(
psz_meta
);
psz_meta
=
input_item_GetArtist
(
p_item
);
SET
(
Artist
,
psz_meta
);
free
(
psz_meta
);
psz_meta
=
input_item_GetAlbum
(
p_item
);
SET
(
Album
,
psz_meta
);
free
(
psz_meta
);
psz_meta
=
input_item_GetDescription
(
p_item
);
SET
(
Comment
,
psz_meta
);
free
(
psz_meta
);
psz_meta
=
input_item_GetGenre
(
p_item
);
SET
(
Genre
,
psz_meta
);
free
(
psz_meta
);
SET
(
TitleFbName
,
Title
);
SET
(
Artist
,
Artist
);
SET
(
Album
,
Album
);
SET
(
Description
,
Comment
);
SET
(
Genre
,
Genre
);
#undef SET
...
...
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