[vlc-devel] commit: taglib: improve the module to read metas from RIFF 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 16:34:02 2009 +0100| [ba64cddc2b5a45e16af2f996b141d85c2a323c3f] | committer: Rémi Duraffort 

taglib: improve the module to read metas from RIFF files.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba64cddc2b5a45e16af2f996b141d85c2a323c3f
---

 modules/meta_engine/taglib.cpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index c499b51..1dd00c3 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -407,6 +407,15 @@ static int ReadMeta( vlc_object_t* p_this)
         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 );
     }
+#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()) )
+            ReadMetaFromId3v2( riff_aiff->tag(), p_demux, p_demux_meta, p_meta );
+        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 );
+    }
+#endif
     else if( TrueAudio::File* trueaudio = dynamic_cast<TrueAudio::File*>(f.file()) )
     {
         if( trueaudio->ID3v2Tag() )




More information about the vlc-devel mailing list