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
c21bb29a
Commit
c21bb29a
authored
May 14, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: fix unused parameters/variables
parent
6364bc24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
24 deletions
+21
-24
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+21
-24
No files found.
modules/meta_engine/taglib.cpp
View file @
c21bb29a
...
@@ -98,11 +98,10 @@ using namespace TagLib;
...
@@ -98,11 +98,10 @@ using namespace TagLib;
/**
/**
* Read meta information from APE tags
* Read meta information from APE tags
* @param tag: the APE tag
* @param tag: the APE tag
* @param p_demux; the demux object
* @param p_demux_meta: the demuxer meta
* @param p_demux_meta: the demuxer meta
* @param p_meta: the meta
* @param p_meta: the meta
*/
*/
static
void
ReadMetaFromAPE
(
APE
::
Tag
*
tag
,
demux_
t
*
p_demux
,
demux_meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
static
void
ReadMetaFromAPE
(
APE
::
Tag
*
tag
,
demux_
meta_t
*
,
vlc_meta_t
*
p_meta
)
{
{
APE
::
Item
item
;
APE
::
Item
item
;
#define SET( keyName, metaName ) \
#define SET( keyName, metaName ) \
...
@@ -121,11 +120,10 @@ static void ReadMetaFromAPE( APE::Tag* tag, demux_t* p_demux, demux_meta_t* p_de
...
@@ -121,11 +120,10 @@ static void ReadMetaFromAPE( APE::Tag* tag, demux_t* p_demux, demux_meta_t* p_de
/**
/**
* Read meta information from id3v2 tags
* Read meta information from id3v2 tags
* @param tag: the id3v2 tag
* @param tag: the id3v2 tag
* @param p_demux; the demux object
* @param p_demux_meta: the demuxer meta
* @param p_demux_meta: the demuxer meta
* @param p_meta: the meta
* @param p_meta: the meta
*/
*/
static
void
ReadMetaFromId3v2
(
ID3v2
::
Tag
*
tag
,
demux_
t
*
p_demux
,
demux_
meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
static
void
ReadMetaFromId3v2
(
ID3v2
::
Tag
*
tag
,
demux_meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
{
{
// Get the unique file identifier
// Get the unique file identifier
ID3v2
::
FrameList
list
=
tag
->
frameListMap
()[
"UFID"
];
ID3v2
::
FrameList
list
=
tag
->
frameListMap
()[
"UFID"
];
...
@@ -286,11 +284,10 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_t* p_demux, demux_meta_t*
...
@@ -286,11 +284,10 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_t* p_demux, demux_meta_t*
/**
/**
* Read the meta information from XiphComments
* Read the meta information from XiphComments
* @param tag: the Xiph Comment
* @param tag: the Xiph Comment
* @param p_demux; the demux object
* @param p_demux_meta: the demuxer meta
* @param p_demux_meta: the demuxer meta
* @param p_meta: the meta
* @param p_meta: the meta
*/
*/
static
void
ReadMetaFromXiph
(
Ogg
::
XiphComment
*
tag
,
demux_
t
*
p_demux
,
demux_
meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
static
void
ReadMetaFromXiph
(
Ogg
::
XiphComment
*
tag
,
demux_meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
{
{
#define SET( keyName, metaName ) \
#define SET( keyName, metaName ) \
StringList list = tag->fieldListMap()[keyName]; \
StringList list = tag->fieldListMap()[keyName]; \
...
@@ -336,7 +333,7 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_t* p_demux, demux_met
...
@@ -336,7 +333,7 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_t* p_demux, demux_met
}
}
#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
static
void
ReadMetaFromMP4
(
MP4
::
Tag
*
tag
,
demux_
t
*
p_demux
,
demux_
meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
static
void
ReadMetaFromMP4
(
MP4
::
Tag
*
tag
,
demux_meta_t
*
p_demux_meta
,
vlc_meta_t
*
p_meta
)
{
{
if
(
tag
->
itemListMap
().
contains
(
"covr"
)
)
if
(
tag
->
itemListMap
().
contains
(
"covr"
)
)
{
{
...
@@ -440,56 +437,56 @@ static int ReadMeta( vlc_object_t* p_this)
...
@@ -440,56 +437,56 @@ static int ReadMeta( vlc_object_t* p_this)
if
(
FLAC
::
File
*
flac
=
dynamic_cast
<
FLAC
::
File
*>
(
f
.
file
())
)
if
(
FLAC
::
File
*
flac
=
dynamic_cast
<
FLAC
::
File
*>
(
f
.
file
())
)
{
{
if
(
flac
->
ID3v2Tag
()
)
if
(
flac
->
ID3v2Tag
()
)
ReadMetaFromId3v2
(
flac
->
ID3v2Tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromId3v2
(
flac
->
ID3v2Tag
(),
p_demux_meta
,
p_meta
);
else
if
(
flac
->
xiphComment
()
)
else
if
(
flac
->
xiphComment
()
)
ReadMetaFromXiph
(
flac
->
xiphComment
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromXiph
(
flac
->
xiphComment
(),
p_demux_meta
,
p_meta
);
}
}
#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
#if defined(TAGLIB_WITH_MP4) && defined(HAVE_TAGLIB_MP4COVERART_H)
else
if
(
MP4
::
File
*
mp4
=
dynamic_cast
<
MP4
::
File
*>
(
f
.
file
())
)
else
if
(
MP4
::
File
*
mp4
=
dynamic_cast
<
MP4
::
File
*>
(
f
.
file
())
)
{
{
if
(
mp4
->
tag
()
)
if
(
mp4
->
tag
()
)
ReadMetaFromMP4
(
mp4
->
tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromMP4
(
mp4
->
tag
(),
p_demux_meta
,
p_meta
);
}
}
#endif
#endif
else
if
(
MPC
::
File
*
mpc
=
dynamic_cast
<
MPC
::
File
*>
(
f
.
file
())
)
else
if
(
MPC
::
File
*
mpc
=
dynamic_cast
<
MPC
::
File
*>
(
f
.
file
())
)
{
{
if
(
mpc
->
APETag
()
)
if
(
mpc
->
APETag
()
)
ReadMetaFromAPE
(
mpc
->
APETag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromAPE
(
mpc
->
APETag
(),
p_demux_meta
,
p_meta
);
}
}
else
if
(
MPEG
::
File
*
mpeg
=
dynamic_cast
<
MPEG
::
File
*>
(
f
.
file
())
)
else
if
(
MPEG
::
File
*
mpeg
=
dynamic_cast
<
MPEG
::
File
*>
(
f
.
file
())
)
{
{
if
(
mpeg
->
ID3v2Tag
()
)
if
(
mpeg
->
ID3v2Tag
()
)
ReadMetaFromId3v2
(
mpeg
->
ID3v2Tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromId3v2
(
mpeg
->
ID3v2Tag
(),
p_demux_meta
,
p_meta
);
else
if
(
mpeg
->
APETag
()
)
else
if
(
mpeg
->
APETag
()
)
ReadMetaFromAPE
(
mpeg
->
APETag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromAPE
(
mpeg
->
APETag
(),
p_demux_meta
,
p_meta
);
}
}
else
if
(
Ogg
::
File
*
ogg
=
dynamic_cast
<
Ogg
::
File
*>
(
f
.
file
())
)
else
if
(
dynamic_cast
<
Ogg
::
File
*>
(
f
.
file
())
)
{
{
if
(
Ogg
::
FLAC
::
File
*
ogg_flac
=
dynamic_cast
<
Ogg
::
FLAC
::
File
*>
(
f
.
file
()))
if
(
Ogg
::
FLAC
::
File
*
ogg_flac
=
dynamic_cast
<
Ogg
::
FLAC
::
File
*>
(
f
.
file
()))
ReadMetaFromXiph
(
ogg_flac
->
tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromXiph
(
ogg_flac
->
tag
(),
p_demux_meta
,
p_meta
);
else
if
(
Ogg
::
Speex
::
File
*
ogg_speex
=
dynamic_cast
<
Ogg
::
Speex
::
File
*>
(
f
.
file
())
)
else
if
(
Ogg
::
Speex
::
File
*
ogg_speex
=
dynamic_cast
<
Ogg
::
Speex
::
File
*>
(
f
.
file
())
)
ReadMetaFromXiph
(
ogg_speex
->
tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromXiph
(
ogg_speex
->
tag
(),
p_demux_meta
,
p_meta
);
else
if
(
Ogg
::
Vorbis
::
File
*
ogg_vorbis
=
dynamic_cast
<
Ogg
::
Vorbis
::
File
*>
(
f
.
file
())
)
else
if
(
Ogg
::
Vorbis
::
File
*
ogg_vorbis
=
dynamic_cast
<
Ogg
::
Vorbis
::
File
*>
(
f
.
file
())
)
ReadMetaFromXiph
(
ogg_vorbis
->
tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromXiph
(
ogg_vorbis
->
tag
(),
p_demux_meta
,
p_meta
);
}
}
#ifdef TAGLIB_WITH_ASF
#ifdef TAGLIB_WITH_ASF
else
if
(
RIFF
::
File
*
riff
=
dynamic_cast
<
RIFF
::
File
*>
(
f
.
file
())
)
else
if
(
dynamic_cast
<
RIFF
::
File
*>
(
f
.
file
())
)
{
{
if
(
RIFF
::
AIFF
::
File
*
riff_aiff
=
dynamic_cast
<
RIFF
::
AIFF
::
File
*>
(
f
.
file
())
)
if
(
RIFF
::
AIFF
::
File
*
riff_aiff
=
dynamic_cast
<
RIFF
::
AIFF
::
File
*>
(
f
.
file
())
)
ReadMetaFromId3v2
(
riff_aiff
->
tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromId3v2
(
riff_aiff
->
tag
(),
p_demux_meta
,
p_meta
);
else
if
(
RIFF
::
WAV
::
File
*
riff_wav
=
dynamic_cast
<
RIFF
::
WAV
::
File
*>
(
f
.
file
())
)
else
if
(
RIFF
::
WAV
::
File
*
riff_wav
=
dynamic_cast
<
RIFF
::
WAV
::
File
*>
(
f
.
file
())
)
ReadMetaFromId3v2
(
riff_wav
->
tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromId3v2
(
riff_wav
->
tag
(),
p_demux_meta
,
p_meta
);
}
}
#endif
#endif
else
if
(
TrueAudio
::
File
*
trueaudio
=
dynamic_cast
<
TrueAudio
::
File
*>
(
f
.
file
())
)
else
if
(
TrueAudio
::
File
*
trueaudio
=
dynamic_cast
<
TrueAudio
::
File
*>
(
f
.
file
())
)
{
{
if
(
trueaudio
->
ID3v2Tag
()
)
if
(
trueaudio
->
ID3v2Tag
()
)
ReadMetaFromId3v2
(
trueaudio
->
ID3v2Tag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromId3v2
(
trueaudio
->
ID3v2Tag
(),
p_demux_meta
,
p_meta
);
}
}
else
if
(
WavPack
::
File
*
wavpack
=
dynamic_cast
<
WavPack
::
File
*>
(
f
.
file
())
)
else
if
(
WavPack
::
File
*
wavpack
=
dynamic_cast
<
WavPack
::
File
*>
(
f
.
file
())
)
{
{
if
(
wavpack
->
APETag
()
)
if
(
wavpack
->
APETag
()
)
ReadMetaFromAPE
(
wavpack
->
APETag
(),
p_demux
,
p_demux
_meta
,
p_meta
);
ReadMetaFromAPE
(
wavpack
->
APETag
(),
p_demux_meta
,
p_meta
);
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
@@ -674,7 +671,7 @@ static int WriteMeta( vlc_object_t *p_this )
...
@@ -674,7 +671,7 @@ static int WriteMeta( vlc_object_t *p_this )
else
if
(
mpeg
->
APETag
()
)
else
if
(
mpeg
->
APETag
()
)
WriteMetaToAPE
(
mpeg
->
APETag
(),
p_item
);
WriteMetaToAPE
(
mpeg
->
APETag
(),
p_item
);
}
}
else
if
(
Ogg
::
File
*
ogg
=
dynamic_cast
<
Ogg
::
File
*>
(
f
.
file
())
)
else
if
(
dynamic_cast
<
Ogg
::
File
*>
(
f
.
file
())
)
{
{
if
(
Ogg
::
FLAC
::
File
*
ogg_flac
=
dynamic_cast
<
Ogg
::
FLAC
::
File
*>
(
f
.
file
()))
if
(
Ogg
::
FLAC
::
File
*
ogg_flac
=
dynamic_cast
<
Ogg
::
FLAC
::
File
*>
(
f
.
file
()))
WriteMetaToXiph
(
ogg_flac
->
tag
(),
p_item
);
WriteMetaToXiph
(
ogg_flac
->
tag
(),
p_item
);
...
@@ -684,7 +681,7 @@ static int WriteMeta( vlc_object_t *p_this )
...
@@ -684,7 +681,7 @@ static int WriteMeta( vlc_object_t *p_this )
WriteMetaToXiph
(
ogg_vorbis
->
tag
(),
p_item
);
WriteMetaToXiph
(
ogg_vorbis
->
tag
(),
p_item
);
}
}
#ifdef TAGLIB_WITH_ASF
#ifdef TAGLIB_WITH_ASF
else
if
(
RIFF
::
File
*
riff
=
dynamic_cast
<
RIFF
::
File
*>
(
f
.
file
())
)
else
if
(
dynamic_cast
<
RIFF
::
File
*>
(
f
.
file
())
)
{
{
if
(
RIFF
::
AIFF
::
File
*
riff_aiff
=
dynamic_cast
<
RIFF
::
AIFF
::
File
*>
(
f
.
file
())
)
if
(
RIFF
::
AIFF
::
File
*
riff_aiff
=
dynamic_cast
<
RIFF
::
AIFF
::
File
*>
(
f
.
file
())
)
WriteMetaToId3v2
(
riff_aiff
->
tag
(),
p_item
);
WriteMetaToId3v2
(
riff_aiff
->
tag
(),
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