[vlc-devel] commit: taglib: write to some more files. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Nov 9 19:39:15 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 2 22:07:00 2009 +0100| [cedacbefb0235346cf9a3697adabca61b3ed4436] | committer: Rémi Duraffort
taglib: write to some more files.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cedacbefb0235346cf9a3697adabca61b3ed4436
---
modules/meta_engine/taglib.cpp | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 1dd00c3..19320d6 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -57,6 +57,12 @@
#include <mpegfile.h>
#include <oggfile.h>
#include <oggflacfile.h>
+
+#ifdef TAGLIB_WITH_ASF
+# include <aifffile.h>
+# include <wavfile.h>
+#endif
+
#include <speexfile.h>
#include <trueaudiofile.h>
#include <vorbisfile.h>
@@ -642,6 +648,15 @@ static int WriteMeta( vlc_object_t *p_this )
else if( Ogg::Vorbis::File* ogg_vorbis = dynamic_cast<Ogg::Vorbis::File*>(f.file()) )
WriteMetaToXiph( ogg_vorbis->tag(), p_item );
}
+#ifdef TAGLIB_WITH_ASF
+ else if( RIFF::File* riff = dynamic_cast<RIFF::File*>(f.file()) )
+ {
+ if( RIFF::AIFF::File* riff_aiff = dynamic_cast<RIFF::AIFF::File*>(f.file()) )
+ WriteMetaToId3v2( riff_aiff->tag(), p_item );
+ else if( RIFF::WAV::File* riff_wav = dynamic_cast<RIFF::WAV::File*>(f.file()) )
+ WriteMetaToId3v2( riff_wav->tag(), p_item );
+ }
+#endif
else if( TrueAudio::File* trueaudio = dynamic_cast<TrueAudio::File*>(f.file()) )
{
if( trueaudio->ID3v2Tag() )
More information about the vlc-devel
mailing list