Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b514a038
Commit
b514a038
authored
Jan 24, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed taglib attachment extraction.
C++ is always so much fun ;)
parent
06224b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+8
-7
No files found.
modules/meta_engine/taglib.cpp
View file @
b514a038
...
...
@@ -204,7 +204,6 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_t* p_demux, demux_meta_t*
input_attachment_t
*
p_attachment
;
const
char
*
psz_mime
;
const
char
*
p_data
;
int
i_data
;
char
*
psz_name
,
*
psz_description
;
// Get the mime and description of the image.
...
...
@@ -234,17 +233,19 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_t* p_demux, demux_meta_t*
continue
;
}
p_data
=
p_apic
->
picture
().
data
();
i_data
=
p_apic
->
picture
().
size
();
const
ByteVector
picture
=
p_apic
->
picture
();
const
char
*
p_data
=
picture
.
data
();
const
unsigned
i_data
=
picture
.
size
();
msg_Dbg
(
p_demux
,
"Found embedded art: %s (%s) is %
i
bytes"
,
msg_Dbg
(
p_demux
,
"Found embedded art: %s (%s) is %
u
bytes"
,
psz_name
,
psz_mime
,
i_data
);
p_attachment
=
vlc_input_attachment_New
(
psz_name
,
psz_mime
,
psz_description
,
p_data
,
i_data
);
TAB_APPEND_CAST
(
(
input_attachment_t
**
),
p_demux_meta
->
i_attachments
,
p_demux_meta
->
attachments
,
p_attachment
);
if
(
p_attachment
)
TAB_APPEND_CAST
(
(
input_attachment_t
**
),
p_demux_meta
->
i_attachments
,
p_demux_meta
->
attachments
,
p_attachment
);
free
(
psz_description
);
if
(
pi_cover_score
[
p_apic
->
type
()]
>
i_score
)
...
...
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