Commit c405205e authored by ivoire's avatar ivoire

taglib: read and wirte APE tags for .ape files.

parent 277eb4cf
......@@ -53,6 +53,7 @@
#include <id3v2tag.h>
#include <xiphcomment.h>
#include <apefile.h>
#include <flacfile.h>
#include <mpcfile.h>
#include <mpegfile.h>
......@@ -435,7 +436,12 @@ static int ReadMeta( vlc_object_t* p_this)
// Try now to read special tags
if( FLAC::File* flac = dynamic_cast<FLAC::File*>(f.file()) )
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()) )
{
if( flac->ID3v2Tag() )
ReadMetaFromId3v2( flac->ID3v2Tag(), p_demux_meta, p_meta );
......@@ -653,7 +659,12 @@ static int WriteMeta( vlc_object_t *p_this )
// Try now to write special tags
if( FLAC::File* flac = dynamic_cast<FLAC::File*>(f.file()) )
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()) )
{
if( flac->ID3v2Tag() )
WriteMetaToId3v2( flac->ID3v2Tag(), p_item );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment