]> granicus.if.org Git - taglib/commitdiff
Fixed an API change
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 27 Aug 2012 09:29:12 +0000 (18:29 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 6 Sep 2012 23:16:30 +0000 (08:16 +0900)
taglib/riff/wav/wavfile.cpp
taglib/riff/wav/wavfile.h

index dd7da2c86956158a57557354bfeb975ca6078973..489adc3b5f4b2a8afa8942b6794605ec047ce8e6 100644 (file)
@@ -86,9 +86,9 @@ RIFF::WAV::File::~File()
   delete d;
 }
 
-Tag *RIFF::WAV::File::tag() const
+ID3v2::Tag *RIFF::WAV::File::tag() const
 {
-  return &d->tag;
+  return ID3v2Tag();
 }
 
 ID3v2::Tag *RIFF::WAV::File::ID3v2Tag() const
index c0fa122ef43573c83b38d78cd05a3bfc03f6e4cb..287db25bf9fc9adcf080ef098e7de95d3c4f262c 100644 (file)
@@ -94,12 +94,21 @@ namespace TagLib {
         virtual ~File();
 
         /*!
-         * Returns the Tag for this file.
+         * Returns the ID3v2 Tag for this file.
+         * 
+         * \note This method does not return all the tags for this file for 
+         * backward compatibility.  Will be fixed in TagLib 2.0.
          */
-        virtual Tag *tag() const;
+        ID3v2::Tag *RIFF::WAV::File::tag() const;
 
+        /*!
+         * Returns the ID3v2 Tag for this file.
+         */
         ID3v2::Tag *ID3v2Tag() const;
 
+        /*!
+         * Returns the RIFF INFO Tag for this file.
+         */
         Info::Tag *InfoTag() const;
 
         /*!