]> granicus.if.org Git - taglib/commitdiff
Make sure that these flags are set to the values that are actually used.
authorScott Wheeler <wheeler@kde.org>
Tue, 29 Aug 2006 23:19:21 +0000 (23:19 +0000)
committerScott Wheeler <wheeler@kde.org>
Tue, 29 Aug 2006 23:19:21 +0000 (23:19 +0000)
BUG:132191

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@578697 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

mpeg/id3v2/id3v2header.cpp
mpeg/id3v2/id3v2header.h

index c2b25506544b4a1cecc0f2c8801512492fa0268b..3e65601b30edeec862e5d427dbfd481f2def1b1a 100644 (file)
@@ -158,6 +158,12 @@ ByteVector Header::render() const
   v.append(char(4));
   v.append(char(0));
 
+  // Currently we don't actually support writing extended headers or footers, so
+  // make sure that the flags are set accordingly.
+
+  d->extendedHeader = false;
+  d->footerPresent = false;
+
   // render and add the flags
   std::bitset<8> flags;
 
index 56d2fc8aabe21a6ad701ce9873db9dca65dde113..cf68c975deb6a7165ce4e72d32b404772a5ededf 100644 (file)
@@ -128,8 +128,8 @@ namespace TagLib {
       static ByteVector fileIdentifier();
 
       /*!
-       * Sets the data that will be used as the extended header.  10 bytes,
-       * starting from \a data will be used.
+       * Sets the data that will be used as the header.  10 bytes, starting from
+       * the beginning of \a data are used.
        */
       void setData(const ByteVector &data);