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
ef1af103
Commit
ef1af103
authored
Jan 10, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: accept the Xiph comments with more than one embedded art,
but take only the first one.
parent
ecadb547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+10
-10
No files found.
modules/meta_engine/taglib.cpp
View file @
ef1af103
...
...
@@ -270,21 +270,21 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_t* p_demux, demux_met
StringList
mime_list
=
tag
->
fieldListMap
()[
"COVERARTMIME"
];
StringList
art_list
=
tag
->
fieldListMap
()[
"COVERART"
];
/* we support only one cover in ogg/vorbis */
if
(
mime_list
.
size
()
!=
1
||
art_list
.
size
()
!=
1
)
// We get only the first covert art
if
(
mime_list
.
size
()
>
1
||
art_list
.
size
()
>
1
)
msg_Warn
(
p_demux
,
"Found %i embedded arts, so using only the first one"
,
art_list
.
size
()
);
else
if
(
mime_list
.
size
()
==
0
||
art_list
.
size
()
==
0
)
return
;
input_attachment_t
*
p_attachment
;
const
char
*
psz_name
,
*
psz_mime
,
*
psz_description
;
uint8_t
*
p_data
;
int
i_data
;
psz_name
=
"cover"
;
psz_mime
=
mime_list
[
0
].
toCString
(
true
);
psz_description
=
"cover"
;
const
char
*
psz_name
=
"cover"
;
const
char
*
psz_mime
=
mime_list
[
0
].
toCString
(
true
);
const
char
*
psz_description
=
"cover"
;
i_data
=
vlc_b64_decode_binary
(
&
p_data
,
art_list
[
0
].
toCString
(
true
)
);
uint8_t
*
p_data
;
int
i_data
=
vlc_b64_decode_binary
(
&
p_data
,
art_list
[
0
].
toCString
(
true
)
);
msg_Dbg
(
p_demux
,
"Found embedded art: %s (%s) is %i bytes"
,
psz_name
,
psz_mime
,
i_data
);
...
...
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