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
01cf7007
Commit
01cf7007
authored
May 15, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: check for the presence of apefile.h
parent
da61086b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
configure.ac
configure.ac
+1
-0
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+10
-2
No files found.
configure.ac
View file @
01cf7007
...
...
@@ -1761,6 +1761,7 @@ AS_IF([test "${enable_taglib}" != "no"], [
VLC_ADD_CXXFLAGS([taglib],[$TAGLIB_CFLAGS])
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS(taglib/mp4coverart.h)
AC_CHECK_HEADERS(taglib/apefile.h)
AC_LANG_POP(C++)
], [
AC_MSG_WARN(TagLib library not found)])
...
...
modules/meta_engine/taglib.cpp
View file @
01cf7007
...
...
@@ -53,7 +53,9 @@
#include <id3v2tag.h>
#include <xiphcomment.h>
#ifdef HAVE_TAGLIB_APEFILE_H
#include <apefile.h>
#endif
#include <flacfile.h>
#include <mpcfile.h>
#include <mpegfile.h>
...
...
@@ -436,12 +438,15 @@ static int ReadMeta( vlc_object_t* p_this)
// Try now to read special tags
#ifdef HAVE_TAGLIB_APEFILE_H
if
(
APE
::
File
*
ape
=
dynamic_cast
<
APE
::
File
*>
(
f
.
file
())
)
{
if
(
ape
->
APETag
()
)
ReadMetaFromAPE
(
ape
->
APETag
(),
p_demux_meta
,
p_meta
);
}
else
if
(
FLAC
::
File
*
flac
=
dynamic_cast
<
FLAC
::
File
*>
(
f
.
file
())
)
else
#endif
if
(
FLAC
::
File
*
flac
=
dynamic_cast
<
FLAC
::
File
*>
(
f
.
file
())
)
{
if
(
flac
->
ID3v2Tag
()
)
ReadMetaFromId3v2
(
flac
->
ID3v2Tag
(),
p_demux_meta
,
p_meta
);
...
...
@@ -659,12 +664,15 @@ static int WriteMeta( vlc_object_t *p_this )
// Try now to write special tags
#ifdef HAVE_TAGLIB_APEFILE_H
if
(
APE
::
File
*
ape
=
dynamic_cast
<
APE
::
File
*>
(
f
.
file
())
)
{
if
(
ape
->
APETag
()
)
WriteMetaToAPE
(
ape
->
APETag
(),
p_item
);
}
else
if
(
FLAC
::
File
*
flac
=
dynamic_cast
<
FLAC
::
File
*>
(
f
.
file
())
)
else
#endif
if
(
FLAC
::
File
*
flac
=
dynamic_cast
<
FLAC
::
File
*>
(
f
.
file
())
)
{
if
(
flac
->
ID3v2Tag
()
)
WriteMetaToId3v2
(
flac
->
ID3v2Tag
(),
p_item
);
...
...
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