Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
cee4c63c
Commit
cee4c63c
authored
Jan 02, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: cleaning.
parent
08ada199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+11
-11
No files found.
modules/meta_engine/taglib.cpp
View file @
cee4c63c
...
...
@@ -342,12 +342,12 @@ static int ReadMetaFromId2v2( ID3v2::Tag* tag, vlc_meta_t* p_meta )
*/
static
int
ReadMetaFromXiph
(
Ogg
::
XiphComment
*
tag
,
vlc_meta_t
*
p_meta
)
{
#define SET(
metaName, key
Name ) \
#define SET(
keyName, meta
Name ) \
StringList list = tag->fieldListMap()[keyName]; \
if( !list.isEmpty() ) \
vlc_meta_Set##metaName( p_meta, (*list.begin()).toCString( true ) );
SET
(
Copyright
,
"COPYRIGHT"
);
SET
(
"COPYRIGHT"
,
Copyright
);
#undef SET
return
VLC_SUCCESS
;
}
...
...
@@ -386,10 +386,10 @@ static int ReadMeta( vlc_object_t* p_this)
// Read the tags from the file
Tag
*
p_tag
=
f
.
tag
();
#define SET(
meta, tag
) \
#define SET(
tag, meta
) \
if( !p_tag->tag().isNull() && !p_tag->tag().isEmpty() ) \
vlc_meta_Set##meta( p_meta, p_tag->tag().toCString(true) )
#define SETINT(
meta, tag
) \
#define SETINT(
tag, meta
) \
if( p_tag->tag() ) \
{ \
char psz_tmp[10]; \
...
...
@@ -397,13 +397,13 @@ static int ReadMeta( vlc_object_t* p_this)
vlc_meta_Set##meta( p_meta, psz_tmp ); \
}
SET
(
Title
,
t
itle
);
SET
(
Artist
,
a
rtist
);
SET
(
Album
,
a
lbum
);
SET
(
Description
,
comment
);
SET
(
Genre
,
g
enre
);
SETINT
(
Date
,
year
);
SETINT
(
Tracknum
,
track
);
SET
(
title
,
T
itle
);
SET
(
artist
,
A
rtist
);
SET
(
album
,
A
lbum
);
SET
(
comment
,
Description
);
SET
(
genre
,
G
enre
);
SETINT
(
year
,
Date
);
SETINT
(
track
,
Tracknum
);
#undef SETINT
#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